Lines Matching refs:TextClassifier
30 const std::string& TextClassifier::kOtherCollection =
32 const std::string& TextClassifier::kPhoneCollection =
34 const std::string& TextClassifier::kAddressCollection =
36 const std::string& TextClassifier::kDateCollection =
74 std::unique_ptr<TextClassifier> TextClassifier::FromUnownedBuffer(
82 std::unique_ptr<TextClassifier>(new TextClassifier(model, unilib));
90 std::unique_ptr<TextClassifier> TextClassifier::FromScopedMmap(
105 std::unique_ptr<TextClassifier>(new TextClassifier(mmap, model, unilib));
113 std::unique_ptr<TextClassifier> TextClassifier::FromFileDescriptor(
119 std::unique_ptr<TextClassifier> TextClassifier::FromFileDescriptor(
125 std::unique_ptr<TextClassifier> TextClassifier::FromPath(
131 void TextClassifier::ValidateAndInitialize() {
286 bool TextClassifier::InitializeRegexModel(ZlibDecompressor* decompressor) {
393 bool TextClassifier::FilteredForAnnotation(const AnnotatedSpan& span) const {
400 bool TextClassifier::FilteredForClassification(
406 bool TextClassifier::FilteredForSelection(const AnnotatedSpan& span) const {
413 CodepointSpan TextClassifier::SuggestSelection(
544 bool TextClassifier::ResolveConflicts(
578 classification[0].collection == TextClassifier::kOtherCollection;
591 bool TextClassifier::ResolveConflict(
648 bool TextClassifier::ModelSuggestSelection(
752 bool TextClassifier::ModelClassifyText(
799 TokenSpan TextClassifier::ClassifyTextUpperBoundNeededTokens() const {
818 bool TextClassifier::ModelClassifyText(
959 bool TextClassifier::RegexClassifyText(
997 bool TextClassifier::DatetimeClassifyText(
1031 std::vector<ClassificationResult> TextClassifier::ClassifyText(
1094 bool TextClassifier::ModelAnnotate(const std::string& context,
1190 const FeatureProcessor* TextClassifier::SelectionFeatureProcessorForTests()
1195 const FeatureProcessor* TextClassifier::ClassificationFeatureProcessorForTests()
1200 const DatetimeParser* TextClassifier::DatetimeParserForTests() const {
1204 std::vector<AnnotatedSpan> TextClassifier::Annotate(
1268 bool TextClassifier::RegexChunk(const UnicodeText& context_unicode,
1296 bool TextClassifier::ModelChunk(int num_tokens,
1381 bool TextClassifier::ModelClickContextScoreChunks(
1452 bool TextClassifier::ModelBoundsSensitiveScoreChunks(
1540 bool TextClassifier::DatetimeChunk(const UnicodeText& context_unicode,