Skip to content
Snippets Groups Projects
Commit 46e88846 authored by ilor's avatar ilor
Browse files

add SentenceContext::get_sentence_ptr to allow acces to the senetnce...

add SentenceContext::get_sentence_ptr to allow acces to the senetnce shared_ptr that's already there anyway
parent c7f5fdc2
Branches
No related merge requests found
...@@ -37,6 +37,11 @@ public: ...@@ -37,6 +37,11 @@ public:
return *sentence_; return *sentence_;
} }
/// Underlying sentence shared pointer accesor
const boost::shared_ptr<Corpus2::Sentence>& get_sentence_ptr() const {
return sentence_;
}
/// Shorthand to get_sentence().size() /// Shorthand to get_sentence().size()
int size() const { int size() const {
return sentence_->size(); return sentence_->size();
......
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