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

swig shared_ptr create sent helper

parent 3f26dbad
Branches
No related merge requests found
...@@ -47,6 +47,12 @@ namespace Corpus2 { ...@@ -47,6 +47,12 @@ namespace Corpus2 {
const Token* first_token() const; const Token* first_token() const;
const std::string id() const; const std::string id() const;
%extend {
static boost::shared_ptr<Corpus2::Sentence> create_sent(const std::string &id) {
return boost::shared_ptr<Corpus2::Sentence>(new Corpus2::Sentence(id));
}
}
}; };
} }
......
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