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
5b42d1a1
Commit
5b42d1a1
authored
13 years ago
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
Added wrapper for Corpus2::Lexeme
parent
8f55c3c3
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swig/libcorpuslexeme.i
+43
-0
43 additions, 0 deletions
swig/libcorpuslexeme.i
with
43 additions
and
0 deletions
swig/libcorpuslexeme.i
0 → 100644
+
43
−
0
View file @
5b42d1a1
#
ifndef
SWIG_LIBCORPUS2_LEXEME_I
#
define
SWIG_LIBCORPUS2_LEXEME_I
%
module
libcorpuslexeme
%
{
#include <unicode/unistr.h>
#include <libcorpus2/lexeme.h>
%}
%
include
"
libcorpustag.i
"
%
include
"
std_string.i
"
%
include
"
std_vector.i
"
%
feature
(
"
notabstract
"
)
Corpus2
::
Lexeme
;
%
rename
(
__op_eq__
)
Corpus2
::
Lexeme
::
operator
==
(
const
Lexeme&
other
)
const
;
%
rename
(
__op_lw__
)
Corpus2
::
Lexeme
::
operator
<
(
const
Lexeme&
other
)
const
;
namespace
Corpus2
{
class Lexeme {
public:
Lexeme();
Lexeme(const UnicodeString& lemma, const Tag& tag);
static Lexeme create(const UnicodeString& lemma, const Tag& tag);
const UnicodeString& lemma() const;
void set_lemma(const UnicodeString& l);
const std::string lemma_utf8() const;
const Tag& tag() const;
void set_tag(const Tag& tag);
bool is_null() const;
void set_disamb(bool value);
bool is_disamb() const;
bool operator<(const Lexeme& other) const;
bool operator==(const Lexeme& other) const;
};
}
using
namespace
std
;
using
namespace
Corpus2
;
#
endif
/* SWIG_LIBCORPUS2_LEXEME_I */
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