Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
WCCL
Commits
cd7f2466
Commit
cd7f2466
authored
13 years ago
by
Adam Wardynski
Browse files
Options
Downloads
Patches
Plain Diff
Add lexicons to WcclFile.
parent
f1d0815d
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libwccl/wcclfile.h
+31
-0
31 additions, 0 deletions
libwccl/wcclfile.h
with
31 additions
and
0 deletions
libwccl/wcclfile.h
+
31
−
0
View file @
cd7f2466
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
#include
<libwccl/values/tset.h>
#include
<libwccl/values/tset.h>
#include
<libwccl/wcclfileopsections.h>
#include
<libwccl/wcclfileopsections.h>
#include
<libwccl/ops/tagrulesequence.h>
#include
<libwccl/ops/tagrulesequence.h>
#include
<libwccl/lexicon/lexicons.h>
namespace
Wccl
{
namespace
Wccl
{
...
@@ -72,6 +73,11 @@ public:
...
@@ -72,6 +73,11 @@ public:
FunctionalOpSequence
::
name_op_v_t
gen_all_op_pairs
();
FunctionalOpSequence
::
name_op_v_t
gen_all_op_pairs
();
FunctionalOpSequence
::
name_op_v_c_t
gen_all_op_pairs
()
const
;
FunctionalOpSequence
::
name_op_v_c_t
gen_all_op_pairs
()
const
;
void
import_lexicon
(
const
boost
::
shared_ptr
<
Lexicon
>&
lexicon
);
bool
has_lexicon
(
const
std
::
string
&
name
)
const
;
boost
::
shared_ptr
<
const
Lexicon
>
get_lexicon_ptr
(
const
std
::
string
&
name
)
const
;
const
Lexicon
&
get_lexicon
(
const
std
::
string
&
name
)
const
;
void
add_untyped_section
(
const
boost
::
shared_ptr
<
UntypedOpSequence
>&
section
);
void
add_untyped_section
(
const
boost
::
shared_ptr
<
UntypedOpSequence
>&
section
);
void
add_untyped_section
(
const
boost
::
shared_ptr
<
const
UntypedOpSequence
>&
section
);
void
add_untyped_section
(
const
boost
::
shared_ptr
<
const
UntypedOpSequence
>&
section
);
void
add_untyped_section
(
const
UntypedOpSequence
&
section
);
void
add_untyped_section
(
const
UntypedOpSequence
&
section
);
...
@@ -98,6 +104,7 @@ private:
...
@@ -98,6 +104,7 @@ private:
std
::
ostream
&
write_to
(
std
::
ostream
&
ostream
)
const
;
std
::
ostream
&
write_to
(
std
::
ostream
&
ostream
)
const
;
std
::
vector
<
boost
::
shared_ptr
<
FunctionalOpSequence
>
>
all_sections_
;
std
::
vector
<
boost
::
shared_ptr
<
FunctionalOpSequence
>
>
all_sections_
;
boost
::
shared_ptr
<
TagRuleSequence
>
tag_rules_
;
boost
::
shared_ptr
<
TagRuleSequence
>
tag_rules_
;
boost
::
shared_ptr
<
Lexicons
>
lexicons_
;
const
Corpus2
::
Tagset
&
tagset_
;
const
Corpus2
::
Tagset
&
tagset_
;
};
};
...
@@ -277,6 +284,30 @@ typename OpSequence<T>::name_op_v_c_t WcclFile::gen_name_op_pairs() const
...
@@ -277,6 +284,30 @@ typename OpSequence<T>::name_op_v_c_t WcclFile::gen_name_op_pairs() const
return
WcclFileOpSections
<
OpSequence
<
T
>
>::
gen_name_op_pairs
();
return
WcclFileOpSections
<
OpSequence
<
T
>
>::
gen_name_op_pairs
();
}
}
inline
void
WcclFile
::
import_lexicon
(
const
boost
::
shared_ptr
<
Lexicon
>&
lexicon
)
{
lexicons_
->
insert
(
lexicon
);
}
inline
bool
WcclFile
::
has_lexicon
(
const
std
::
string
&
name
)
const
{
return
lexicons_
->
has_lexicon
(
name
);
}
inline
boost
::
shared_ptr
<
const
Lexicon
>
WcclFile
::
get_lexicon_ptr
(
const
std
::
string
&
name
)
const
{
return
lexicons_
->
get_ptr
(
name
);
}
inline
const
Lexicon
&
WcclFile
::
get_lexicon
(
const
std
::
string
&
name
)
const
{
return
lexicons_
->
get
(
name
);
}
inline
inline
void
WcclFile
::
add_untyped_section
(
const
boost
::
shared_ptr
<
UntypedOpSequence
>&
section
)
void
WcclFile
::
add_untyped_section
(
const
boost
::
shared_ptr
<
UntypedOpSequence
>&
section
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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