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
ba1b7de4
Commit
ba1b7de4
authored
Jun 11, 2011
by
Bartosz Broda
Browse files
Options
Downloads
Patches
Plain Diff
add lexunit c-tor
parent
403f61ae
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
libmwereader/mwe.cpp
+15
-0
15 additions, 0 deletions
libmwereader/mwe.cpp
libmwereader/mwe.h
+14
-1
14 additions, 1 deletion
libmwereader/mwe.h
libmwereader/mweparser.cpp
+1
-0
1 addition, 0 deletions
libmwereader/mweparser.cpp
with
30 additions
and
1 deletion
libmwereader/mwe.cpp
+
15
−
0
View file @
ba1b7de4
#include
"mwe.h"
namespace
Corpus2
{
LexicalUnit
::
LexicalUnit
(
const
std
::
string
&
base
,
boost
::
shared_ptr
<
Wccl
::
Operator
<
Wccl
::
Bool
>
>
condition
,
boost
::
shared_ptr
<
Wccl
::
Operator
<
Wccl
::
Bool
>
>
head_cond
,
std
::
map
<
std
::
string
,
std
::
string
>
variables
)
:
condition_
(
condition
),
head_cond_
(
head_cond
),
variables_
(
variables
),
base_
(
base
)
{
}
}
//ns Corpus2
This diff is collapsed.
Click to expand it.
libmwereader/mwe.h
+
14
−
1
View file @
ba1b7de4
...
...
@@ -2,12 +2,25 @@
#define LIBMWEREADER_MWE_H
#include
<libcorpus2/io/reader.h>
#include
<libwccl/ops/operator.h>
namespace
Corpus2
{
class
LexicalUnit
{
public:
LexicalUnit
(
const
std
::
string
&
base
,
boost
::
shared_ptr
<
Wccl
::
Operator
<
Wccl
::
Bool
>
>
condition
,
boost
::
shared_ptr
<
Wccl
::
Operator
<
Wccl
::
Bool
>
>
head_cond
,
std
::
map
<
std
::
string
,
std
::
string
>
variables
);
protected:
boost
::
shared_ptr
<
Wccl
::
Operator
<
Wccl
::
Bool
>
>
condition_
;
boost
::
shared_ptr
<
Wccl
::
Operator
<
Wccl
::
Bool
>
>
head_cond_
;
std
::
map
<
std
::
string
,
std
::
string
>
variables_
;
std
::
string
base_
;
};
class
FixedLU
:
public
LexicalUnit
...
...
This diff is collapsed.
Click to expand it.
libmwereader/mweparser.cpp
+
1
−
0
View file @
ba1b7de4
...
...
@@ -54,6 +54,7 @@ namespace Corpus2 {
void
MWEParser
::
create_mwe
()
{
print_current_mwe
(
true
);
MWEBuilder
::
BoolOpPtr
main
=
mwe_builder_
->
get_mwe_condition
(
wccl_operator_
);
MWEBuilder
::
BoolOpPtr
head
=
mwe_builder_
->
get_head_condition
(
...
...
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