From 69e211912e65fa9df4d2865e4682a3aeb2fe850a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20K=C4=99dzia?= <Pawel.Kedzia@pwr.wroc.pl> Date: Thu, 17 Nov 2011 13:16:11 +0100 Subject: [PATCH] Added wrapper for RelationReader --- swig/corpus2.i | 1 + swig/relationreader.i | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 swig/relationreader.i diff --git a/swig/corpus2.i b/swig/corpus2.i index 7f8a538..b925343 100644 --- a/swig/corpus2.i +++ b/swig/corpus2.i @@ -16,6 +16,7 @@ %include "lexeme.i" %include "libpwrnlperror.i" %include "relation.i" +%include "relationreader.i" %include "sentence.i" %include "tag.i" %include "tagging.i" diff --git a/swig/relationreader.i b/swig/relationreader.i new file mode 100644 index 0000000..0fbd550 --- /dev/null +++ b/swig/relationreader.i @@ -0,0 +1,20 @@ +#ifndef SWIG_LIBCORPUS2_RELATIONREADER_I +#define SWIG_LIBCORPUS2_RELATIONREADER_I + +%module libcorpusrelationreader +%{ + #include <libcorpus2/io/relreader.h> +%} + +namespace Corpus2 { + class RelationReader { + public: + RelationReader(const std::string &rela_path); + const std::vector< boost::shared_ptr<Relation> >& relations(); + }; +} + +using namespace std; +using namespace Corpus2; + +#endif /* SWIG_LIBCORPUS2_RELATIONREADER_I */ -- GitLab