diff --git a/swig/annotatedsentence.i b/swig/annotatedsentence.i index ae04681f32803aed75973a86dce4ab8cc0b2a3be..a00344cd0d856ec118899dad738b95ea7b0cfb5f 100644 --- a/swig/annotatedsentence.i +++ b/swig/annotatedsentence.i @@ -58,6 +58,10 @@ namespace Corpus2 { /* --------------------------------------------------------------------- */ std::string annotation_info() const; }; + +boost::shared_ptr<AnnotationView> create_view( + const boost::shared_ptr<AnnotatedSentence>& s, + const std::string& ann_name); } using namespace std; diff --git a/swig/annotationview.i b/swig/annotationview.i index c909f4bd2422fd20bbe07081a8e3104f2191ea8d..10fbb1c0dde1dfe9fde3675e6334fa9a28c9735c 100644 --- a/swig/annotationview.i +++ b/swig/annotationview.i @@ -13,7 +13,7 @@ %include "std_string.i" %include "boost_shared_ptr.i" -// %template(AnnotatedSentencePtr) boost::shared_ptr<AnnotatedSentence>; +%template(AnnotationViewPtr) boost::shared_ptr<Corpus2::AnnotationView>; %nodefaultctor Corpus2::TokenWriter;