Home
last modified time | relevance | path

Searched refs:HashToken (Results 1 – 4 of 4) sorted by relevance

/external/libtextclassifier/utils/
Dtoken-feature-extractor_test.cc33 using TokenFeatureExtractor::HashToken;
55 extractor.HashToken("H"), in TEST_F()
56 extractor.HashToken("e"), in TEST_F()
57 extractor.HashToken("l"), in TEST_F()
58 extractor.HashToken("l"), in TEST_F()
59 extractor.HashToken("o"), in TEST_F()
60 extractor.HashToken("^H"), in TEST_F()
61 extractor.HashToken("He"), in TEST_F()
62 extractor.HashToken("el"), in TEST_F()
63 extractor.HashToken("ll"), in TEST_F()
[all …]
Dtoken-feature-extractor.cc161 int TokenFeatureExtractor::HashToken(StringPiece token) const { in HashToken() function in libtextclassifier3::TokenFeatureExtractor
188 result.push_back(HashToken("<PAD>")); in ExtractCharactergramFeaturesAscii()
209 result.push_back(HashToken(feature_word)); in ExtractCharactergramFeaturesAscii()
216 HashToken(StringPiece(feature_word, /*offset=*/i, /*len=*/1))); in ExtractCharactergramFeaturesAscii()
222 result.push_back(HashToken(StringPiece(feature_word, /*offset=*/i, in ExtractCharactergramFeaturesAscii()
236 result.push_back(HashToken("<PAD>")); in ExtractCharactergramFeaturesUnicode()
273 result.push_back(HashToken(feature_word)); in ExtractCharactergramFeaturesUnicode()
302 result.push_back(HashToken( in ExtractCharactergramFeaturesUnicode()
Dtoken-feature-extractor.h97 int HashToken(StringPiece token) const;
/external/clang/lib/Frontend/Rewrite/
DInclusionRewriter.cpp438 Token HashToken = RawToken; in Process() local
447 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, NextToWrite, in Process()
452 SourceLocation Loc = HashToken.getLocation(); in Process()
477 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, in Process()
485 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, in Process()