diff --git a/libwccl/sentencecontext.h b/libwccl/sentencecontext.h index 0f61c0fe8bc8b85b5c6f40676e2859e8a58e61d4..3f2e99f02a60873052aaa8080a7c347dbdae2783 100644 --- a/libwccl/sentencecontext.h +++ b/libwccl/sentencecontext.h @@ -37,6 +37,11 @@ public: return *sentence_; } + /// Underlying sentence shared pointer accesor + const boost::shared_ptr<Corpus2::Sentence>& get_sentence_ptr() const { + return sentence_; + } + /// Shorthand to get_sentence().size() int size() const { return sentence_->size();