Closed guillaumekln closed 3 years ago
operator[]
get_sentence
get_suffix
sentence_buffer
suffixid2sentenceid
SuffixView
nsentences
operator[]
: it's not immediately clear what is being indexed. We should useget_sentence
orget_suffix
instead.sentence_buffer
: this buffer should remain privatesuffixid2sentenceid
: the name is incorrect since it maps toSuffixView
objects not sentence IDs, and we don't need to return the full vector.nsentences
: this small getter should be implemented in a header file.