44 typedef std::vector<uint64_t> SENTENCE_BOUNDS_T;
45 typedef std::deque<std::pair<
63 void setId(
const std::string&
id) {
82 std::vector< boost::shared_ptr<LTR_Token> >::clear();
83 m_sentenceBounds.clear();
84 m_namedEntities.clear();
90 return m_sentenceBounds.begin();
93 return m_sentenceBounds.end();
99 void addToken(boost::shared_ptr<LTR_Token>& token);
100 void addSentenceBound(
const uint64_t& sb);
101 void appendLTR_Text(
const LTR_Text& ltr);
106 void binaryWriteOn(std::ostream& os)
const;
107 void binaryReadFrom(std::istream& is);
125 SENTENCE_BOUNDS_T m_sentenceBounds;
129 NAMED_ENTITIES_T m_namedEntities;
a linear text representation
SENTS_CONST_ITER_T endSentenceBounds() const
std::string getId() const
SENTS_CONST_ITER_T beginSentenceBounds() const
void setId(const std::string &id)
SENTENCE_BOUNDS_T::const_iterator SENTS_CONST_ITER_T