Home
last modified time | relevance | path

Searched refs:vocab_id (Results 1 – 8 of 8) sorted by relevance

/external/tflite-support/tensorflow_lite_support/cc/text/tokenizers/
Dbert_tokenizer.cc49 bool FlatHashMapBackedWordpiece::LookupWord(int vocab_id, in LookupWord() argument
51 if (vocab_id >= vocab_.size() || vocab_id < 0) { in LookupWord()
54 *result = vocab_[vocab_id]; in LookupWord()
Dbert_tokenizer.h79 bool LookupWord(int vocab_id, absl::string_view* result) const;
131 bool LookupWord(int vocab_id, absl::string_view* result) const override { in LookupWord() argument
132 return vocab_.LookupWord(vocab_id, result); in LookupWord()
Dsentencepiece_tokenizer.h60 bool LookupWord(int vocab_id, absl::string_view* result) const override { in LookupWord() argument
61 *result = sp_.IdToPiece(vocab_id); in LookupWord()
Dregex_tokenizer.cc101 bool RegexTokenizer::LookupWord(int vocab_id, absl::string_view* result) const { in LookupWord() argument
102 auto it = index_token_map_.find(vocab_id); in LookupWord()
Dtokenizer.h44 virtual bool LookupWord(int vocab_id, absl::string_view* result) const = 0;
Dregex_tokenizer.h42 bool LookupWord(int vocab_id, absl::string_view* result) const override;
/external/libtextclassifier/native/utils/
Dbert_tokenizer.cc53 bool FlatHashMapBackedWordpiece::LookupWord(int vocab_id, in LookupWord() argument
55 if (vocab_id >= vocab_.size() || vocab_id < 0) { in LookupWord()
58 *result = vocab_[vocab_id]; in LookupWord()
Dbert_tokenizer.h74 bool LookupWord(int vocab_id, absl::string_view* result) const;
125 bool LookupWord(int vocab_id, absl::string_view* result) const override { in LookupWord() argument
126 return vocab_.LookupWord(vocab_id, result); in LookupWord()