Skip to content
Snippets Groups Projects
Commit b3fc3f07 authored by Paweł Kędzia's avatar Paweł Kędzia
Browse files

(swig) Updated wrapper for Wccl::TokenMatch

parent d47ae260
Branches
No related merge requests found
......@@ -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 */
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment