From b3fc3f077848020ff855d892804ebc49c28b3b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20K=C4=99dzia?= <Pawel.Kedzia@pwr.wroc.pl> Date: Tue, 10 May 2011 10:19:21 +0200 Subject: [PATCH] (swig) Updated wrapper for Wccl::TokenMatch --- swig/libccltokenmatch.i | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/swig/libccltokenmatch.i b/swig/libccltokenmatch.i index 32757f8..a4045e9 100644 --- a/swig/libccltokenmatch.i +++ b/swig/libccltokenmatch.i @@ -6,7 +6,6 @@ #include <libwccl/values/tokenmatch.h> %} -%include "libcclposition.i" %include "libcclmatchdata.i" %include "libcorpus/libcorpusannotatedsentence.i" @@ -15,15 +14,14 @@ namespace Wccl { class TokenMatch : public MatchData { public: - explicit TokenMatch(Position position); explicit TokenMatch(int pos); - + /* --------------------------------------------------------------------- */ 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; @@ -33,4 +31,5 @@ namespace Wccl { using namespace std; using namespace Wccl; + #endif /* SWIG_LIBWCCL_TOKENMATCH_I */ -- GitLab