Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
WCCL
Commits
f02e80f2
Commit
f02e80f2
authored
Jun 12, 2011
by
Bartosz Broda
Browse files
Options
Downloads
Patches
Plain Diff
add positions to operator
parent
822f2965
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
libmwereader/mweparser.cpp
+7
-0
7 additions, 0 deletions
libmwereader/mweparser.cpp
libmwereader/test_mwe.xml
+13
-4
13 additions, 4 deletions
libmwereader/test_mwe.xml
with
20 additions
and
4 deletions
libmwereader/mweparser.cpp
+
7
−
0
View file @
f02e80f2
...
...
@@ -59,6 +59,13 @@ namespace Corpus2 {
wccl_operator_
);
MWEBuilder
::
BoolOpPtr
head
=
mwe_builder_
->
get_head_condition
(
head_cond_
);
//const Corpus2::Tagset& tagset = Corpus2::get_named_tagset(tagset_);
foreach
(
const
std
::
string
&
varname
,
main
->
valid_variable_names
())
if
(
boost
::
algorithm
::
starts_with
(
varname
,
"Pos"
))
std
::
cout
<<
"Pozycja: "
<<
varname
<<
std
::
endl
;
}
std
::
string
MWEParser
::
get_attribute
(
const
AttributeList
&
attributes
,
...
...
This diff is collapsed.
Click to expand it.
libmwereader/test_mwe.xml
+
13
−
4
View file @
f02e80f2
...
...
@@ -4,8 +4,11 @@
<condition>
and(
inter(base[0],$s:Subst1),
inter(class[0],{subst,ger,depr}),
inter(base[1],$s:Subst2),
setvar($Pos1, 0),
setvar($Pos2, 1),
inter(class[0],{subst,ger,depr}),
inter(class[1],{subst,ger,depr}),
inter(cas[0], cas[1])
)
...
...
@@ -27,8 +30,10 @@
<condition>
and(
inter(base[0],$s:Adj),
inter(class[0],{adj}),
inter(base[1],$s:Subst),
setvar($Pos1, 0),
setvar($Pos2, 1),
inter(class[0],{adj}),
inter(class[1],{subst,ger,depr}),
agrpp(0,1,{nmb,gnd,cas})
)
...
...
@@ -46,16 +51,20 @@
or(
and(
inter(base[1],$s:Adj),
inter(class[1],{adj}),
inter(base[0],$s:Subst),
setvar($Pos1, 1),
setvar($Pos2, 0),
inter(class[1],{adj}),
equal(nmb[0], {sg}),
in(class[0],{subst,ger,depr}),
agrpp(0,1,{nmb,gnd,cas})
),//and
and(
inter(base[0],$s:Adj),
inter(class[0],{adj}),
inter(base[1],$s:Subst),
setvar($Pos1, 0),
setvar($Pos2, 1),
inter(class[0],{adj}),
equal(nmb[1],{sg}),
in(class[1],{subst,ger,depr}),
agrpp(0,1,{nmb,gnd,cas})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment