Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
corpus2
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
corpus2
Commits
8d80327d
Commit
8d80327d
authored
Apr 28, 2011
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
Added wapper for Corpus2::IOB
parent
6f5b39b6
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
swig/Makefile
+19
-6
19 additions, 6 deletions
swig/Makefile
swig/libcorpusiob.i
+29
-0
29 additions, 0 deletions
swig/libcorpusiob.i
with
48 additions
and
6 deletions
swig/Makefile
+
19
−
6
View file @
8d80327d
...
@@ -20,7 +20,8 @@ CBIN=libcorpustag.o \
...
@@ -20,7 +20,8 @@ CBIN=libcorpustag.o \
libcorpussentence.o
\
libcorpussentence.o
\
libcorpuschunk.o
\
libcorpuschunk.o
\
libcorpustokenwriter.o
\
libcorpustokenwriter.o
\
libcorpustokenreader.o
libcorpustokenreader.o
\
libcorpusiob.o
CBINOUT
=
_boost_shared_ptr.so
\
CBINOUT
=
_boost_shared_ptr.so
\
_libcorpustag.so
\
_libcorpustag.so
\
...
@@ -31,7 +32,8 @@ CBINOUT=_boost_shared_ptr.so \
...
@@ -31,7 +32,8 @@ CBINOUT=_boost_shared_ptr.so \
_libcorpussentence.so
\
_libcorpussentence.so
\
_libcorpuschunk.so
\
_libcorpuschunk.so
\
_libcorpustokenwriter.so
\
_libcorpustokenwriter.so
\
_libcorpustokenreader.so
_libcorpustokenreader.so
\
_libcorpusiob.so
CWRAP
=
boost_shared_ptr_wrap.cxx
\
CWRAP
=
boost_shared_ptr_wrap.cxx
\
libcorpustag_wrap.cxx
\
libcorpustag_wrap.cxx
\
...
@@ -42,7 +44,8 @@ CWRAP=boost_shared_ptr_wrap.cxx \
...
@@ -42,7 +44,8 @@ CWRAP=boost_shared_ptr_wrap.cxx \
libcorpussentence_wrap.cxx
\
libcorpussentence_wrap.cxx
\
libcorpuschunk_wrap.cxx
\
libcorpuschunk_wrap.cxx
\
libcorpustokenwriter_wrap.cxx
\
libcorpustokenwriter_wrap.cxx
\
libcorpustokenreader_wrap.cxx
libcorpustokenreader_wrap.cxx
\
libcorpusiob_wrap.cxx
CWRAPBIN
=
boost_shared_ptr_wrap.o
\
CWRAPBIN
=
boost_shared_ptr_wrap.o
\
libcorpustag_wrap.o
\
libcorpustag_wrap.o
\
...
@@ -53,7 +56,8 @@ CWRAPBIN=boost_shared_ptr_wrap.o \
...
@@ -53,7 +56,8 @@ CWRAPBIN=boost_shared_ptr_wrap.o \
libcorpussentence_wrap.o
\
libcorpussentence_wrap.o
\
libcorpuschunk_wrap.o
\
libcorpuschunk_wrap.o
\
libcorpustokenwriter_wrap.o
\
libcorpustokenwriter_wrap.o
\
libcorpustokenreader_wrap.o
libcorpustokenreader_wrap.o
\
libcorpusiob_wrap.o
PYMODULES
=
boost_shared_ptr.py
\
PYMODULES
=
boost_shared_ptr.py
\
libcorpustag.py
\
libcorpustag.py
\
...
@@ -64,7 +68,8 @@ PYMODULES=boost_shared_ptr.py \
...
@@ -64,7 +68,8 @@ PYMODULES=boost_shared_ptr.py \
libcorpussentence.py
\
libcorpussentence.py
\
libcorpuschunk.py
\
libcorpuschunk.py
\
libcorpustokenwriter.py
\
libcorpustokenwriter.py
\
libcorpustokenreader.py
libcorpustokenreader.py
\
libcorpusiob.py
PYCBIN
=
boost_shared_ptr.pyc
\
PYCBIN
=
boost_shared_ptr.pyc
\
libcorpustag.pyc
\
libcorpustag.pyc
\
...
@@ -75,7 +80,8 @@ PYCBIN=boost_shared_ptr.pyc \
...
@@ -75,7 +80,8 @@ PYCBIN=boost_shared_ptr.pyc \
libcorpussentence.pyc
\
libcorpussentence.pyc
\
libcorpuschunk.pyc
\
libcorpuschunk.pyc
\
libcorpustokenwriter.pyc
\
libcorpustokenwriter.pyc
\
libcorpustokenreader.pyc
libcorpustokenreader.pyc
\
libcorpusiob.pyc
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
all
:
boost_shared_ptr.o $(CBIN)
all
:
boost_shared_ptr.o $(CBIN)
...
@@ -151,6 +157,13 @@ libcorpustokenreader.o:
...
@@ -151,6 +157,13 @@ libcorpustokenreader.o:
$(
CPP
)
-shared
libcorpustokenreader_wrap.o
\
$(
CPP
)
-shared
libcorpustokenreader_wrap.o
\
$(
PWRUTILBIN
)
$(
CORPUS2BIN
)
-o
_libcorpustokenreader.so
$(
PWRUTILBIN
)
$(
CORPUS2BIN
)
-o
_libcorpustokenreader.so
# IOB
libcorpusiob.o
:
$(
SWIG
)
$(
SWIGOPTS_LANG
)
libcorpusiob.i
$(
CPP
)
-c
libcorpusiob_wrap.cxx
-I
$(
PYTHONDIR
)
$(
CPPFLAGS
)
$(
CPP
)
-shared
libcorpusiob_wrap.o
\
$(
PWRUTILBIN
)
$(
CORPUS2BIN
)
-o
_libcorpusiob.so
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
clean
:
clean
:
rm
-f
$(
CBIN
)
$(
CBINOUT
)
$(
CWRAP
)
$(
CWRAPBIN
)
$(
PYMODULES
)
$(
PYCBIN
)
rm
-f
$(
CBIN
)
$(
CBINOUT
)
$(
CWRAP
)
$(
CWRAPBIN
)
$(
PYMODULES
)
$(
PYCBIN
)
This diff is collapsed.
Click to expand it.
swig/libcorpusiob.i
0 → 100644
+
29
−
0
View file @
8d80327d
#
ifndef
SWIG_LIBCORPUS2_IOB_I
#
define
SWIG_LIBCORPUS2_IOB_I
%
module
libcorpusiob
%
{
#include <libcorpus2/ann/iob.h>
%}
// %include "...i"
namespace
Corpus2
{
namespace IOB {
enum Enum {
O = 0,
B = 1,
I = 2,
PostLast
};
const char* to_string(Enum iob);
Enum from_string(const std::string& s);
}
}
using
namespace
std
;
using
namespace
Corpus2
::
IOB
;
using
namespace
Corpus2
;
#
endif
/* SWIG_LIBCORPUS2_IOB_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