• Home
  • Raw
  • Download

Lines Matching refs:Annotator

59 const std::string& Annotator::kPhoneCollection =
61 const std::string& Annotator::kAddressCollection =
63 const std::string& Annotator::kDateCollection =
65 const std::string& Annotator::kUrlCollection =
67 const std::string& Annotator::kEmailCollection =
156 std::unique_ptr<Annotator> Annotator::FromUnownedBuffer( in FromUnownedBuffer()
164 auto classifier = std::unique_ptr<Annotator>(new Annotator()); in FromUnownedBuffer()
176 std::unique_ptr<Annotator> Annotator::FromString( in FromString()
179 auto classifier = std::unique_ptr<Annotator>(new Annotator()); in FromString()
197 std::unique_ptr<Annotator> Annotator::FromScopedMmap( in FromScopedMmap()
212 auto classifier = std::unique_ptr<Annotator>(new Annotator()); in FromScopedMmap()
225 std::unique_ptr<Annotator> Annotator::FromScopedMmap( in FromScopedMmap()
240 auto classifier = std::unique_ptr<Annotator>(new Annotator()); in FromScopedMmap()
253 std::unique_ptr<Annotator> Annotator::FromFileDescriptor( in FromFileDescriptor()
260 std::unique_ptr<Annotator> Annotator::FromFileDescriptor( in FromFileDescriptor()
267 std::unique_ptr<Annotator> Annotator::FromFileDescriptor( in FromFileDescriptor()
273 std::unique_ptr<Annotator> Annotator::FromFileDescriptor( in FromFileDescriptor()
280 std::unique_ptr<Annotator> Annotator::FromPath(const std::string& path, in FromPath()
287 std::unique_ptr<Annotator> Annotator::FromPath( in FromPath()
294 void Annotator::ValidateAndInitialize(const Model* model, const UniLib* unilib, in ValidateAndInitialize()
554 bool Annotator::InitializeRegexModel(ZlibDecompressor* decompressor) { in InitializeRegexModel()
591 bool Annotator::InitializeKnowledgeEngine( in InitializeKnowledgeEngine()
606 bool Annotator::InitializeContactEngine(const std::string& serialized_config) { in InitializeContactEngine()
618 bool Annotator::InitializeInstalledAppEngine( in InitializeInstalledAppEngine()
630 bool Annotator::SetLangId(const libtextclassifier3::mobile::lang_id::LangId* lang_id) { in SetLangId()
646 bool Annotator::InitializePersonNameEngineFromUnownedBuffer(const void* buffer, in InitializePersonNameEngineFromUnownedBuffer()
670 bool Annotator::InitializePersonNameEngineFromScopedMmap( in InitializePersonNameEngineFromScopedMmap()
681 bool Annotator::InitializePersonNameEngineFromPath(const std::string& path) { in InitializePersonNameEngineFromPath()
686 bool Annotator::InitializePersonNameEngineFromFileDescriptor(int fd, int offset, in InitializePersonNameEngineFromFileDescriptor()
692 bool Annotator::InitializeExperimentalAnnotators() { in InitializeExperimentalAnnotators()
740 bool Annotator::FilteredForAnnotation(const AnnotatedSpan& span) const { in FilteredForAnnotation()
747 bool Annotator::FilteredForClassification( in FilteredForClassification()
753 bool Annotator::FilteredForSelection(const AnnotatedSpan& span) const { in FilteredForSelection()
769 float Annotator::GetPriorityScore( in GetPriorityScore()
782 bool Annotator::VerifyRegexMatchCandidate( in VerifyRegexMatchCandidate()
806 CodepointSpan Annotator::SuggestSelection( in SuggestSelection()
1052 bool Annotator::ResolveConflicts( in ResolveConflicts()
1132 bool Annotator::ResolveConflict( in ResolveConflict()
1243 bool Annotator::ModelSuggestSelection( in ModelSuggestSelection()
1388 TokenSpan Annotator::ClassifyTextUpperBoundNeededTokens() const { in ClassifyTextUpperBoundNeededTokens()
1418 bool Annotator::ModelClassifyText( in ModelClassifyText()
1437 bool Annotator::ModelClassifyText( in ModelClassifyText()
1615 bool Annotator::RegexClassifyText( in RegexClassifyText()
1673 bool Annotator::DatetimeClassifyText( in DatetimeClassifyText()
1720 std::vector<ClassificationResult> Annotator::ClassifyText( in ClassifyText()
1944 bool Annotator::ModelAnnotate( in ModelAnnotate()
2109 const FeatureProcessor* Annotator::SelectionFeatureProcessorForTests() const { in SelectionFeatureProcessorForTests()
2113 const FeatureProcessor* Annotator::ClassificationFeatureProcessorForTests() in ClassificationFeatureProcessorForTests()
2118 const DatetimeParser* Annotator::DatetimeParserForTests() const { in DatetimeParserForTests()
2122 void Annotator::RemoveNotEnabledEntityTypes( in RemoveNotEnabledEntityTypes()
2145 void Annotator::AddContactMetadataToKnowledgeClassificationResults( in AddContactMetadataToKnowledgeClassificationResults()
2158 Status Annotator::AnnotateSingleInput( in AnnotateSingleInput()
2378 StatusOr<Annotations> Annotator::AnnotateStructuredInput( in AnnotateStructuredInput()
2451 std::vector<AnnotatedSpan> Annotator::Annotate( in Annotate()
2477 CodepointSpan Annotator::ComputeSelectionBoundaries( in ComputeSelectionBoundaries()
2518 bool Annotator::HasEntityData(const RegexModel_::Pattern* pattern) const { in HasEntityData()
2537 bool Annotator::SerializedEntityDataFromRegexMatch( in SerializedEntityDataFromRegexMatch()
2628 void Annotator::GetMoneyQuantityFromCapturingGroup( in GetMoneyQuantityFromCapturingGroup()
2662 bool Annotator::ParseAndFillInMoneyAmount( in ParseAndFillInMoneyAmount()
2767 bool Annotator::IsAnyModelEntityTypeEnabled( in IsAnyModelEntityTypeEnabled()
2786 bool Annotator::IsAnyRegexEntityTypeEnabled( in IsAnyRegexEntityTypeEnabled()
2804 bool Annotator::IsAnyPodNerEntityTypeEnabled( in IsAnyPodNerEntityTypeEnabled()
2819 bool Annotator::RegexChunk(const UnicodeText& context_unicode, in RegexChunk()
2894 bool Annotator::ModelChunk(int num_tokens, const TokenSpan& span_of_interest, in ModelChunk()
2978 bool Annotator::ModelClickContextScoreChunks( in ModelClickContextScoreChunks()
3048 bool Annotator::ModelBoundsSensitiveScoreChunks( in ModelBoundsSensitiveScoreChunks()
3135 bool Annotator::DatetimeChunk(const UnicodeText& context_unicode, in DatetimeChunk()
3176 const Model* Annotator::model() const { return model_; } in model()
3177 const reflection::Schema* Annotator::entity_data_schema() const { in entity_data_schema()
3189 StatusOr<std::string> Annotator::LookUpKnowledgeEntity( in LookUpKnowledgeEntity()
3198 StatusOr<std::string> Annotator::LookUpKnowledgeEntityProperty( in LookUpKnowledgeEntityProperty()