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
19e5bc73
Commit
19e5bc73
authored
Apr 4, 2011
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
Added wrapper for Corpus2::Token
parent
e343d08f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
swig/libcorpustoken.i
+52
-0
52 additions, 0 deletions
swig/libcorpustoken.i
with
52 additions
and
0 deletions
swig/libcorpustoken.i
0 → 100644
+
52
−
0
View file @
19e5bc73
#
ifndef
SWIG_LIBCORPUS2_TOKEN_I
#
define
SWIG_LIBCORPUS2_TOKEN_I
%
module
libcorpustoken
%
{
#include <unicode/unistr.h>
#include <libcorpus2/token.h>
%}
%
include
"
libcorpustagset.i
"
%
include
"
std_pair.i
"
%
include
"
std_string.i
"
%
include
"
std_vector.i
"
%
feature
(
"
notabstract
"
)
Corpus2
::
Token
;
%
rename
(
__op_eq__
)
Corpus2
::
Token
::
operator
==
(
const
Token&
other
)
const
;
namespace
Corpus2
{
class Token {
public:
Token();
Token(const UnicodeString& orth, PwrNlp::Whitespace::Enum wa);
Token* clone() const;
const UnicodeString& orth() const;
std::string orth_utf8() const;
void set_orth(const UnicodeString& orth);
const PwrNlp::Whitespace::Enum& wa() const;
void set_wa(const PwrNlp::Whitespace::Enum& wa);
const std::vector<Lexeme>& lexemes() const;
std::vector<Lexeme>& lexemes();
void add_lexeme(const Lexeme& lex);
const Lexeme& get_preferred_lexeme(const Tagset& tagset) const;
size_t get_preferred_lexeme_index(const Tagset& tagset) const;
void make_ign(const Tagset& tagset);
void add_ign(const Tagset& tagset);
bool operator==(const Token& other) const;
bool check_duplicate_lexemes() const;
bool remove_duplicate_lexemes();
bool has_disamb_lexeme() const;
int count_disamb_lexemes() const;
std::pair<lexeme_filter_iterator, lexeme_filter_iterator> disamb_lexemes() const;
};
}
using
namespace
std
;
using
namespace
Corpus2
;
#
endif
/* SWIG_LIBCORPUS2_TOKEN_I */
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