Skip to content
Snippets Groups Projects
Commit e54a8103 authored by Adam Radziszewski's avatar Adam Radziszewski
Browse files

add ann sent -> sent pointer cast to swig, useful in python

parent d94bbc58
No related merge requests found
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)
......
......@@ -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);
......
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