Home
last modified time | relevance | path

Searched refs:annotator (Results 1 – 25 of 41) sorted by relevance

12

/external/libtextclassifier/native/annotator/pod_ner/
Dpod-ner-impl_test.cc105 std::unique_ptr<PodNerAnnotator> annotator = in TEST_F() local
107 ASSERT_TRUE(annotator != nullptr); in TEST_F()
111 ASSERT_TRUE(annotator->Annotate( in TEST_F()
118 ASSERT_TRUE(annotator->Annotate( in TEST_F()
128 std::unique_ptr<PodNerAnnotator> annotator = in TEST_F() local
130 ASSERT_TRUE(annotator != nullptr); in TEST_F()
134 ASSERT_TRUE(annotator->Annotate(UTF8ToUnicodeText(""), &annotations)); in TEST_F()
187 std::unique_ptr<PodNerAnnotator> annotator = in TEST_F() local
189 ASSERT_TRUE(annotator != nullptr); in TEST_F()
195 ASSERT_TRUE(annotator->Annotate(UTF8ToUnicodeText(multi_word_location), in TEST_F()
[all …]
Dpod-ner-impl.cc198 std::unique_ptr<PodNerAnnotator> annotator(new PodNerAnnotator(unilib)); in Create() local
199 annotator->tokenizer_ = std::move(tokenizer); in Create()
200 annotator->lowercase_input_ = model->lowercase_input(); in Create()
201 annotator->logits_index_in_output_tensor_ = in Create()
203 annotator->append_final_period_ = model->append_final_period(); in Create()
206 annotator->labels_.clear(); in Create()
208 annotator->labels_.emplace_back(); in Create()
209 annotator->labels_.back().boise_type = label->boise_type(); in Create()
210 annotator->labels_.back().mention_type = label->mention_type(); in Create()
211 annotator->labels_.back().collection_id = label->collection_id(); in Create()
[all …]
/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator_test.cc66 GrammarAnnotator annotator(CreateGrammarAnnotator(serialized_model)); in TEST_F() local
69 EXPECT_TRUE(annotator.Annotate( in TEST_F()
109 GrammarAnnotator annotator(CreateGrammarAnnotator(serialized_model)); in TEST_F() local
112 EXPECT_TRUE(annotator.Annotate( in TEST_F()
152 GrammarAnnotator annotator(CreateGrammarAnnotator(serialized_model)); in TEST_F() local
155 EXPECT_TRUE(annotator.Annotate( in TEST_F()
184 GrammarAnnotator annotator(CreateGrammarAnnotator(serialized_model)); in TEST_F() local
187 EXPECT_TRUE(annotator.ClassifyText( in TEST_F()
240 GrammarAnnotator annotator(CreateGrammarAnnotator(serialized_model)); in TEST_F() local
242 EXPECT_FALSE(annotator.ClassifyText( in TEST_F()
[all …]
/external/libtextclassifier/native/
DJavaTests.bp22 "annotator/pod_ner/pod-ner-impl_test.cc",
23 "annotator/datetime/regex-parser_test.cc",
24 "annotator/datetime/grammar-parser_test.cc",
25 "annotator/datetime/datetime-grounder_test.cc",
30 "annotator/number/number_test-include.cc",
31 "annotator/annotator_test-include.cc",
32 "annotator/grammar/grammar-annotator_test.cc",
33 "annotator/grammar/test-utils.cc",
DFlatBufferHeaders.bp47 srcs: ["annotator/person_name/person_name_model.fbs"],
48 out: ["annotator/person_name/person_name_model_generated.h"],
54 srcs: ["annotator/datetime/datetime.fbs"],
55 out: ["annotator/datetime/datetime_generated.h"],
61 srcs: ["annotator/experimental/experimental.fbs"],
62 out: ["annotator/experimental/experimental_generated.h"],
68 srcs: ["annotator/entity-data.fbs"],
69 out: ["annotator/entity-data_generated.h"],
75 srcs: ["annotator/model.fbs"],
76 out: ["annotator/model_generated.h"],
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/
DSectionAnnotator.java44 @Nonnull public final DexAnnotator annotator; field in SectionAnnotator
52 public SectionAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem mapItem) { in SectionAnnotator() argument
53 this.annotator = annotator; in SectionAnnotator()
54 this.dexFile = annotator.dexFile; in SectionAnnotator()
DEncodedArrayItem.java43 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
44 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
DClassDefItem.java56 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
57 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
61 classDataAnnotator = annotator.getAnnotator(ItemType.CLASS_DATA_ITEM); in makeAnnotator()
DStringDataItem.java44 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
45 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
DAnnotationSetItem.java46 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
47 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
DAnnotationSetRefList.java46 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
47 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
DCallSiteIdItem.java49 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
50 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
DMethodHandleItem.java49 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
50 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
DAnnotationItem.java47 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
48 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
DTypeIdItem.java45 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
46 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
DClassDataItem.java45 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
46 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
50 codeItemAnnotator = annotator.getAnnotator(ItemType.CODE_ITEM); in makeAnnotator()
DTypeListItem.java46 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
47 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
DMapItem.java74 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
75 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
DFieldIdItem.java49 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
50 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
DStringIdItem.java46 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
47 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
DProtoIdItem.java49 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
50 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
DMethodIdItem.java49 …public static SectionAnnotator makeAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem map… in makeAnnotator() argument
50 return new SectionAnnotator(annotator, mapItem) { in makeAnnotator()
/external/libtextclassifier/jni/com/google/android/textclassifier/
DActionsSuggestionsModel.java91 Conversation conversation, ActionSuggestionOptions options, AnnotatorModel annotator) { in suggestActions() argument
96 (annotator != null ? annotator.getNativeAnnotatorPointer() : 0), in suggestActions()
107 AnnotatorModel annotator) { in suggestActionsWithIntents() argument
112 (annotator != null ? annotator.getNativeAnnotatorPointer() : 0), in suggestActionsWithIntents()
/external/libtextclassifier/native/annotator/person_name/
Dperson_name_model.fbs22 // Person name which is considered by the person name annotator. This
32 // Decides if the person name annotator is enabled.
36 // List of all person names which are considered by the person name annotator.
/external/smali/baksmali/src/main/java/org/jf/baksmali/
DDumpCommand.java104 DexAnnotator annotator = new DexAnnotator(rawDexFile, consoleWidth); in dump() local
105 annotator.writeAnnotations(writer); in dump()

12