diff --git a/swig/libcclannotationmatch.i b/swig/libcclannotationmatch.i index 791be9f5269346fb72b3df9fd59ac721765327de..7a2c9176b8f524b813c96f8379acd4830b7144cc 100644 --- a/swig/libcclannotationmatch.i +++ b/swig/libcclannotationmatch.i @@ -6,32 +6,32 @@ #include <libwccl/values/annotationmatch.h> %} -%include "std_string.i" -%include "libcclposition.i" %include "libcclmatchdata.i" %include "libcorpus/libcorpusannotatedsentence.i" +%include "std_string.i" + %nodefaultctor Wccl::AnnotationMatch; namespace Wccl { class AnnotationMatch : public MatchData { public: - explicit AnnotationMatch(Position position, const std::string channel); explicit AnnotationMatch(int pos, const std::string channel); /* --------------------------------------------------------------------- */ bool empty() const; /* --------------------------------------------------------------------- */ - Position first_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>&) const; - Position last_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>&) const; + int first_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>&) const; + int last_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>&) const; /* --------------------------------------------------------------------- */ std::string to_raw_string() const; }; } -using namespace std; +using namespace boost; using namespace Wccl; +using namespace std; #endif /* SWIG_LIBWCCL_ANNOTATIONMATCH_I */