Home
last modified time | relevance | path

Searched refs:LookupWord (Results 1 – 9 of 9) sorted by relevance

/external/libtextclassifier/native/utils/
Dbert_tokenizer_test.cc117 ASSERT_FALSE(tokenizer->LookupWord(6, &result)); in TEST()
119 ASSERT_TRUE(tokenizer->LookupWord(0, &result)); in TEST()
121 ASSERT_TRUE(tokenizer->LookupWord(1, &result)); in TEST()
123 ASSERT_TRUE(tokenizer->LookupWord(2, &result)); in TEST()
125 ASSERT_TRUE(tokenizer->LookupWord(3, &result)); in TEST()
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() function
126 return vocab_.LookupWord(vocab_id, result); in LookupWord()
Dbert_tokenizer.cc53 bool FlatHashMapBackedWordpiece::LookupWord(int vocab_id, in LookupWord() function in libtextclassifier3::FlatHashMapBackedWordpiece
/external/tflite-support/tensorflow_lite_support/cc/text/tokenizers/
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() function
132 return vocab_.LookupWord(vocab_id, result); 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;
Dsentencepiece_tokenizer.h60 bool LookupWord(int vocab_id, absl::string_view* result) const override { in LookupWord() function
Dbert_tokenizer.cc49 bool FlatHashMapBackedWordpiece::LookupWord(int vocab_id, in LookupWord() function in tflite::support::text::tokenizer::FlatHashMapBackedWordpiece
Dregex_tokenizer.cc101 bool RegexTokenizer::LookupWord(int vocab_id, absl::string_view* result) const { in LookupWord() function in tflite::support::text::tokenizer::RegexTokenizer