Searched refs:word_id (Results 1 – 2 of 2) sorted by relevance
276 for (int32 word_id = 0; word_id < num_reserved_ids; ++word_id) { in FillReservedIds() local277 if (word_id % num_shards_ == shard_) weights_.push_back(0.0); in FillReservedIds()288 int32 word_id = weights_.size(); in LoadFromFile() local295 if (word_id % num_shards_ == shard_) { in LoadFromFile()305 ++word_id; in LoadFromFile()312 int32 word_id = weights_.size(); in LoadFromUnigrams() local315 if (word_id % num_shards_ == shard_) { in LoadFromUnigrams()320 ++word_id; in LoadFromUnigrams()
214 std::unordered_map<string, int32> word_id; in Init() local223 word_id[w] = id; in Init()231 corpus_.push_back(gtl::FindWithDefault(word_id, w, kUnkId)); in Init()