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
a4f66406
Commit
a4f66406
authored
13 years ago
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
Added wrapper for Corpus2::Sentence
parent
904bad5f
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swig/libcorpussentence.i
+46
-0
46 additions, 0 deletions
swig/libcorpussentence.i
with
46 additions
and
0 deletions
swig/libcorpussentence.i
0 → 100644
+
46
−
0
View file @
a4f66406
#
ifndef
SWIG_LIBCORPUS2_SENTENCE_I
#
define
SWIG_LIBCORPUS2_SENTENCE_I
%
module
libcorpussentence
%
{
#include <libcorpus2/sentence.h>
%}
%
include
"
libcorpustoken.i
"
%
include
"
std_string.i
"
%
include
"
std_vector.i
"
%
include
"
boost_shared_ptr.i
"
%
feature
(
"
notabstract
"
)
Corpus2
::
Sentence
;
%
rename
(
__op_get__
)
Corpus2
::
Sentence
::
operator
[](
size_t
idx
)
const
;
namespace
Corpus2
{
class Sentence {
public:
Sentence();
virtual ~Sentence();
virtual boost::shared_ptr<Sentence> clone_shared() const;
void release_tokens();
bool empty() const;
size_t size() const;
Token* operator[](size_t idx);
const std::vector<Token*>& tokens() const;
std::vector<Token*>& tokens();
virtual void append(Token* t);
const Token* first_token() const;
};
}
%
template
(
SentenceSharedPtr
)
boost
::
shared_ptr
<
Corpus2
::
Sentence
>
;
using
namespace
boost
;
using
namespace
std
;
using
namespace
Corpus2
;
#
endif
/* SWIG_LIBCORPUS2_SENTENCE_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