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

Swig wrappers using std_defs header now

parent 25a60275
No related branches found
No related tags found
No related merge requests found
...@@ -8,9 +8,11 @@ ...@@ -8,9 +8,11 @@
%include "std_string.i" %include "std_string.i"
%include "std_vector.i" %include "std_vector.i"
%include "iob.i" %include "iob.i"
%include "std_defs.i"
%template(IntVector) std::vector<int>; // %template(IntVector) std::vector<int>;
%template(IOBVector) std::vector<Corpus2::IOB::Enum>; %template(IOBVector) std::vector<Corpus2::IOB::Enum>;
%template(AnnotationVector) std::vector<Corpus2::Annotation>; %template(AnnotationVector) std::vector<Corpus2::Annotation>;
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
%} %}
%include "std_defs.i"
%include "std_set.i" %include "std_set.i"
%include "std_map.i" %include "std_map.i"
%include "std_pair.i" %include "std_pair.i"
...@@ -18,7 +20,7 @@ ...@@ -18,7 +20,7 @@
%template(ChunkPtr) boost::shared_ptr<Corpus2::Chunk>; %template(ChunkPtr) boost::shared_ptr<Corpus2::Chunk>;
%template(SentencePtrVector) std::vector<boost::shared_ptr<Sentence> >; %template(SentencePtrVector) std::vector<boost::shared_ptr<Sentence> >;
%template(attr_map_t) std::map<std::string, std::string>; // %template(attr_map_t) std::map<std::string, std::string>;
namespace Corpus2 { namespace Corpus2 {
class Chunk { class Chunk {
......
...@@ -9,13 +9,14 @@ ...@@ -9,13 +9,14 @@
%include "tag.i" %include "tag.i"
%include "exception.i" %include "exception.i"
%include "std_defs.i"
%include "std_string.i" %include "std_string.i"
%include "std_vector.i" %include "std_vector.i"
%feature("notabstract") Corpus2::Tagset; %feature("notabstract") Corpus2::Tagset;
%template(TagVector) std::vector<Corpus2::Tag>; %template(TagVector) std::vector<Corpus2::Tag>;
%template(StdStringVector) std::vector<std::string>; // %template(StdStringVector) std::vector<std::string>;
namespace Corpus2 { namespace Corpus2 {
class Tagset; class Tagset;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment