diff --git a/libcorpus2/sentence.h b/libcorpus2/sentence.h index ee572d9ea669f24b0f522f642c423bb8e4c782cd..5c465e417c398c9f3d6239402d6b4b1fb631b7ea 100644 --- a/libcorpus2/sentence.h +++ b/libcorpus2/sentence.h @@ -113,6 +113,11 @@ public: return tokens_[0]; } + /// Identifier getter + const std::string id() const { + return id_; + } + protected: /// The tokens this sentence contains and owns std::vector<Token*> tokens_;