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
538765db
Commit
538765db
authored
May 11, 2011
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
(swig) Added wrapper for Wccl::MatchRuleSequence
parent
4a795d96
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
swig/Makefile
+21
-0
21 additions, 0 deletions
swig/Makefile
swig/libcclmatchrulesequence.i
+44
-0
44 additions, 0 deletions
swig/libcclmatchrulesequence.i
with
65 additions
and
0 deletions
swig/Makefile
+
21
−
0
View file @
538765db
...
...
@@ -37,8 +37,10 @@ CBIN=libcclvalue.o \
libccltagrule.o
\
libccltagrulesequence.o
\
libcclmatchrule.o
\
libcclmatchrulesequence.o
\
libcclfunctionalopsequence.o
\
libcclwcclfileopsections.o
\
libcclwcclfile.o
\
wccl.o
CBINOUT
=
_libcclvalue.so
\
...
...
@@ -63,6 +65,7 @@ CBINOUT=_libcclvalue.so \
_libccltagrule.so
\
_libccltagrulesequence.so
\
_libcclmatchrule.so
\
_libcclmatchrulesequence.so
\
_libcclfunctionalopsequence.so
\
_libcclwcclfileopsections.so
\
_wccl.so
\
...
...
@@ -90,6 +93,7 @@ CWRAP=libcclvalue_wrap.cxx \
libccltagrule_wrap.cxx
\
libccltagrulesequence_wrap.cxx
\
libcclmatchrule_wrap.cxx
\
libcclmatchrulesequence_wrap.cxx
\
libcclfunctionalopsequence_wrap.cxx
\
libcclwcclfileopsections_wrap.cxx
\
wccl_wrap.cxx
\
...
...
@@ -117,6 +121,7 @@ CWRAPBIN=libcclvalue_wrap.o \
libccltagrule_wrap.o
\
libccltagrulesequence_wrap.o
\
libcclmatchrule_wrap.o
\
libcclmatchrulesequence_wrap.o
\
libcclfunctionalopsequence_wrap.o
\
libcclwcclfileopsections_wrap.o
\
wccl_wrap.o
\
...
...
@@ -144,6 +149,7 @@ PYMODULES=libcclvalue.py \
libccltagrule.py
\
libccltagrulesequence.py
\
libcclmatchrule.py
\
libcclmatchrulesequence.py
\
libcclfunctionalopsequence.py
\
libcclwcclfileopsections.py
\
wccl.py
\
...
...
@@ -171,6 +177,7 @@ PYCBIN=libcclvalue.pyc \
libccltagrule.pyc
\
libccltagrulesequence.pyc
\
libcclmatchrule.pyc
\
libcclmatchrulesequence.pyc
\
libcclfunctionalopsequence.pyc
\
libcclwcclfileopsections.pyc
\
wccl.pyc
\
...
...
@@ -353,6 +360,13 @@ libcclmatchrule.o:
$(
CPP
)
-shared
libcclmatchrule_wrap.o
\
$(
CCLBIN
)
$(
ANTLRLIB
)
-o
_libcclmatchrule.so
# MatchRuleSequence
libcclmatchrulesequence.o
:
$(
SWIG
)
$(
SWIGOPTS_LANG
)
libcclmatchrulesequence.i
$(
CPP
)
-c
libcclmatchrulesequence_wrap.cxx
-I
$(
PYTHONDIR
)
-I
$(
WCCLDIR
)
$(
CPPFLAGS
)
$(
CPP
)
-shared
libcclmatchrulesequence_wrap.o
\
$(
CCLBIN
)
$(
ANTLRLIB
)
-o
_libcclmatchrulesequence.so
# FunctionalOpSequence
libcclfunctionalopsequence.o
:
$(
SWIG
)
$(
SWIGOPTS_LANG
)
libcclfunctionalopsequence.i
...
...
@@ -367,6 +381,13 @@ libcclwcclfileopsections.o:
$(
CPP
)
-shared
libcclwcclfileopsections_wrap.o
\
$(
CCLBIN
)
$(
ANTLRLIB
)
-o
_libcclwcclfileopsections.so
# WcclFile
libcclwcclfile.o
:
$(
SWIG
)
$(
SWIGOPTS_LANG
)
libcclwcclfile.i
$(
CPP
)
-c
libcclwcclfile_wrap.cxx
-I
$(
PYTHONDIR
)
-I
$(
WCCLDIR
)
$(
CPPFLAGS
)
$(
CPP
)
-shared
libcclwcclfile_wrap.o
\
$(
CCLBIN
)
$(
ANTLRLIB
)
-o
_libcclwcclfile.so
# -----------------------------------------------------------------------------
# Wccl Library
wccl.o
:
...
...
This diff is collapsed.
Click to expand it.
swig/libcclmatchrulesequence.i
0 → 100644
+
44
−
0
View file @
538765db
#
ifndef
SWIG_LIBWCCL_MATCHRULESEQUENCE_I
#
define
SWIG_LIBWCCL_MATCHRULESEQUENCE_I
%
module
libcclmatchrulesequence
%
{
#include <libwccl/ops/matchrulesequence.h>
%}
%
include
"
libcclmatchrule.i
"
%
include
"
libcclexpression.i
"
%
include
"
libcorpus/libcorpusannotatedsentence.i
"
%
include
"
std_string.i
"
%
include
"
std_vector.i
"
%
include
"
boost_shared_ptr.i
"
%
template
(
MatchRuleVector
)
std
::
vector
<
MatchRule
>
;
namespace
Wccl
{
class MatchRuleSequence : public std::vector<MatchRule>, public Expression {
public:
MatchRuleSequence();
MatchRuleSequence(const std::vector<MatchRule>& rules);
/* --------------------------------------------------------------------- */
%rename(OpFunMatchRuleSequence) operator()(const boost::shared_ptr<Corpus2::AnnotatedSentence>& sentence);
void operator()(const boost::shared_ptr<Corpus2::AnnotatedSentence>& sentence);
/* --------------------------------------------------------------------- */
void apply_all(const boost::shared_ptr<Corpus2::AnnotatedSentence>& sentence);
/* --------------------------------------------------------------------- */
std::string to_string(const Corpus2::Tagset& tagset) const;
};
}
using
namespace
boost
;
using
namespace
Wccl
;
using
namespace
std
;
#
endif
/* SWIG_LIBWCCL_MATCHRULESEQUENCE_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