Searched refs:word_index (Results 1 – 2 of 2) sorted by relevance
220 self.word_index = dict(225 i = self.word_index.get(self.oov_token)227 self.word_index[self.oov_token] = len(self.word_index) + 1231 self.index_docs[self.word_index[w]] = c288 i = self.word_index.get(w)295 i = self.word_index.get(self.oov_token)329 if self.word_index:330 num_words = len(self.word_index) + 1
315 uint64 word_index = id / kStatesPerWord; in GetState() local316 if (word_index >= states_.size()) { in GetState()321 uint64 w = states_[word_index]; in GetState()326 uint64 word_index = id / kStatesPerWord; in SetState() local327 if (word_index >= states_.size()) { in SetState()328 states_.resize(word_index + 1, 0); in SetState()330 uint64* w = &states_[word_index]; in SetState()