diff --git a/CMakeLists.txt b/CMakeLists.txt index 43793e19a5c3958447e072f78f7ee330faaccecc..19ce20e932e09a8e5f795feb37128186f833416f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,8 @@ PROJECT(Corpus2Library) set(corpus2_ver_major "1") -set(corpus2_ver_minor "1") -set(corpus2_ver_patch "1") +set(corpus2_ver_minor "2") +set(corpus2_ver_patch "0") cmake_minimum_required(VERSION 2.8.0) diff --git a/swig/annotatedsentence.i b/swig/annotatedsentence.i index 0c59edb90eb7cdcdfeb5155f704fd6c1ee61cda2..c158c4aa603da845d80a225b89233845ccd080e9 100644 --- a/swig/annotatedsentence.i +++ b/swig/annotatedsentence.i @@ -59,6 +59,14 @@ namespace Corpus2 { std::string annotation_info() const; }; + %extend AnnotatedSentence { + static boost::shared_ptr<Sentence> cast_as_sentence( + const boost::shared_ptr<AnnotatedSentence>& a) + { + return a; + } + } + boost::shared_ptr<Corpus2::AnnotationView> create_view( const boost::shared_ptr<AnnotatedSentence>& s, const std::string& ann_name);