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

Wrapper for Wccl::TokenMatch

parent bf5aa475
Branches
No related merge requests found
#ifndef SWIG_LIBWCCL_TOKENMATCH_I
#define SWIG_LIBWCCL_TOKENMATCH_I
%module libccltokenmatch
%{
#include <libwccl/values/tokenmatch.h>
%}
%include "libcclposition.i"
%include "libcclmatchdata.i"
%include "libcorpus/libcorpusannotatedsentence.i"
%nodefaultctor Corpus2::TokenMatch;
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;
/* --------------------------------------------------------------------- */
std::string to_raw_string() const;
};
}
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