Home
last modified time | relevance | path

Searched full:annotator (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/downloader/
DDownloadedModelManagerImplTest.java76 registerManifestToDB(ModelType.ANNOTATOR, "en", "manifestUrlEn", "modelUrlEn", "modelPathEn"); in listModels_cacheNotInitialized()
77 registerManifestToDB(ModelType.ANNOTATOR, "zh", "manifestUrlZh", "modelUrlZh", "modelPathZh"); in listModels_cacheNotInitialized()
79 assertThat(downloadedModelManagerImpl.listModels(ModelType.ANNOTATOR)) in listModels_cacheNotInitialized()
86 registerManifestToDB(ModelType.ANNOTATOR, "en", "manifestUrlEn", "modelUrlEn", "modelPathEn"); in listModels_doNotListBlockedModels()
87 registerManifestToDB(ModelType.ANNOTATOR, "zh", "manifestUrlZh", "modelUrlZh", "modelPathZh"); in listModels_doNotListBlockedModels()
94 assertThat(downloadedModelManagerImpl.listModels(ModelType.ANNOTATOR)) in listModels_doNotListBlockedModels()
100 registerManifestToDB(ModelType.ANNOTATOR, "en", "manifestUrlEn", "modelUrlEn", "modelPathEn"); in listModels_cacheNotUpdatedUnlessOnDownloadCompleted()
101 assertThat(downloadedModelManagerImpl.listModels(ModelType.ANNOTATOR)) in listModels_cacheNotUpdatedUnlessOnDownloadCompleted()
104 registerManifestToDB(ModelType.ANNOTATOR, "zh", "manifestUrlZh", "modelUrlZh", "modelPathZh"); in listModels_cacheNotUpdatedUnlessOnDownloadCompleted()
105 assertThat(downloadedModelManagerImpl.listModels(ModelType.ANNOTATOR)) in listModels_cacheNotUpdatedUnlessOnDownloadCompleted()
[all …]
/external/libtextclassifier/native/annotator/pod_ner/
Dpod-ner-impl_test.cc17 #include "annotator/pod_ner/pod-ner-impl.h"
23 #include "annotator/model_generated.h"
24 #include "annotator/types.h"
64 GetTestFileContent("annotator/pod_ner/test_data/tflite_model.tflite"); in PodNerTest()
68 GetTestFileContent("annotator/pod_ner/test_data/vocab.txt"); in PodNerTest()
117 std::unique_ptr<PodNerAnnotator> annotator = in TEST_F() local
119 ASSERT_TRUE(annotator != nullptr); in TEST_F()
123 ASSERT_TRUE(annotator->Annotate( in TEST_F()
130 ASSERT_TRUE(annotator->Annotate( in TEST_F()
140 std::unique_ptr<PodNerAnnotator> annotator = in TEST_F() local
[all …]
Dpod-ner-impl.cc17 #include "annotator/pod_ner/pod-ner-impl.h"
28 #include "annotator/model_generated.h"
29 #include "annotator/pod_ner/utils.h"
30 #include "annotator/types.h"
198 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()
[all …]
/external/spdx-tools/rdfloader/parser2v2/
Dparse_annotation_test.go20 // TestCase 2: Invalid annotator type
25 t.Errorf("should've raised an error for an unknown annotator type")
28 // TestCase 3: Valid annotator
33 t.Errorf("unexpected error for a valid annotator")
35 if ann.Annotator.AnnotatorType != "Person" {
36 t.Errorf("wrnog annotator type: expected: %s, found: %s", "Person", ann.Annotator)
38 if ann.Annotator.Annotator != "Rishabh" {
39 t.Errorf("wrong annotator: expected: %s, found: %s", "Rishabh", ann.Annotator)
99 // TestCase 1: invalid annotator must raise an error
104 <spdx:annotator>Company: some company</spdx:annotator>
[all …]
/external/spdx-tools/rdfloader/parser2v3/
Dparse_annotation_test.go20 // TestCase 2: Invalid annotator type
25 t.Errorf("should've raised an error for an unknown annotator type")
28 // TestCase 3: Valid annotator
33 t.Errorf("unexpected error for a valid annotator")
35 if ann.Annotator.AnnotatorType != "Person" {
36 t.Errorf("wrnog annotator type: expected: %s, found: %s", "Person", ann.Annotator)
38 if ann.Annotator.Annotator != "Rishabh" {
39 t.Errorf("wrong annotator: expected: %s, found: %s", "Rishabh", ann.Annotator)
99 // TestCase 1: invalid annotator must raise an error
104 <spdx:annotator>Company: some company</spdx:annotator>
[all …]
/external/libtextclassifier/native/annotator/
Dannotator_test-include.cc17 #include "annotator/annotator_test-include.h"
24 #include "annotator/annotator.h"
25 #include "annotator/collections.h"
26 #include "annotator/model_generated.h"
27 #include "annotator/test-utils.h"
28 #include "annotator/types-test-util.h"
29 #include "annotator/types.h"
32 #include "utils/testing/annotator.h"
80 std::unique_ptr<Annotator> classifier = in TEST_F()
81 Annotator::FromPath(GetModelPath() + "wrong_embeddings.fb", unilib_.get(), in TEST_F()
[all …]
Dannotator.h28 #include "annotator/contact/contact-engine.h"
29 #include "annotator/datetime/datetime-grounder.h"
30 #include "annotator/datetime/parser.h"
31 #include "annotator/duration/duration.h"
32 #include "annotator/experimental/experimental.h"
33 #include "annotator/feature-processor.h"
34 #include "annotator/grammar/grammar-annotator.h"
35 #include "annotator/installed_app/installed-app-engine.h"
36 #include "annotator/knowledge/knowledge-engine.h"
37 #include "annotator/model-executor.h"
[all …]
Dannotator_test-include.h23 #include "annotator/annotator.h"
27 #include "utils/testing/annotator.h"
35 return GetTestDataPath("annotator/test_data/"); in GetModelPath()
38 class TestingAnnotator : public Annotator {
54 // Safe to downcast from Annotator* to TestingAnnotator* because the
58 Annotator::FromUnownedBuffer(buffer, size, unilib, calendarlib)
62 using Annotator::ResolveConflicts;
Dannotator.cc17 #include "annotator/annotator.h"
29 #include "annotator/collections.h"
30 #include "annotator/datetime/grammar-parser.h"
31 #include "annotator/datetime/regex-parser.h"
32 #include "annotator/flatbuffer-utils.h"
33 #include "annotator/knowledge/knowledge-engine-types.h"
34 #include "annotator/model_generated.h"
35 #include "annotator/types.h"
59 const std::string& Annotator::kPhoneCollection =
61 const std::string& Annotator::kAddressCollection =
[all …]
/external/spdx-tools/tvloader/parser2v2/
Dparse_annotation_test.go16 err := parser.parsePairForAnnotation2_2("Annotator", "Person: John Doe (jdoe@example.com)")
27 // start with valid annotator
28 err := parser.parsePair2_2("Annotator", "Person: John Doe (jdoe@example.com)")
46 t.Errorf("expected error when calling parsePair2_2 for AnnotationDate without Annotator first")
50 t.Errorf("expected error when calling parsePair2_2 for AnnotationType without Annotator first")
54 t.Errorf("expected error when calling parsePair2_2 for SPDXREF without Annotator first")
58 t.Errorf("expected error when calling parsePair2_2 for AnnotationComment without Annotator first")
68 // Annotator without email address
69 err := parser.parsePair2_2("Annotator", "Person: John Doe")
73 if parser.ann.Annotator.Annotator != "John Doe" {
[all …]
/external/spdx-tools/tvloader/parser2v3/
Dparse_annotation_test.go16 err := parser.parsePairForAnnotation2_3("Annotator", "Person: John Doe (jdoe@example.com)")
27 // start with valid annotator
28 err := parser.parsePair2_3("Annotator", "Person: John Doe (jdoe@example.com)")
46 t.Errorf("expected error when calling parsePair2_3 for AnnotationDate without Annotator first")
50 t.Errorf("expected error when calling parsePair2_3 for AnnotationType without Annotator first")
54 t.Errorf("expected error when calling parsePair2_3 for SPDXREF without Annotator first")
58 t.Errorf("expected error when calling parsePair2_3 for AnnotationComment without Annotator first")
68 // Annotator without email address
69 err := parser.parsePair2_3("Annotator", "Person: John Doe")
73 if parser.ann.Annotator.Annotator != "John Doe" {
[all …]
/external/spdx-tools/tvloader/parser2v1/
Dparse_annotation_test.go16 err := parser.parsePairForAnnotation2_1("Annotator", "Person: John Doe (jdoe@example.com)")
27 // start with valid annotator
28 err := parser.parsePair2_1("Annotator", "Person: John Doe (jdoe@example.com)")
46 t.Errorf("expected error when calling parsePair2_1 for AnnotationDate without Annotator first")
50 t.Errorf("expected error when calling parsePair2_1 for AnnotationType without Annotator first")
54 t.Errorf("expected error when calling parsePair2_1 for SPDXREF without Annotator first")
58 t.Errorf("expected error when calling parsePair2_1 for AnnotationComment without Annotator first")
68 // Annotator without email address
69 err := parser.parsePair2_1("Annotator", "Person: John Doe")
73 if parser.ann.Annotator.Annotator != "John Doe" {
[all …]
/external/spdx-tools/spdx/common/
Dannotation.go11 type Annotator struct { struct
12 Annotator string member
17 // UnmarshalJSON takes an annotator in the typical one-line format and parses it into an Annotator
19 func (a *Annotator) UnmarshalJSON(data []byte) error { argument
20 // annotator will simply be a string
27 return fmt.Errorf("failed to parse Annotator '%s'", annotatorStr)
31 a.Annotator = annotatorFields[1]
36 // MarshalJSON converts the receiver into a slice of bytes representing an Annotator in string form.
38 func (a Annotator) MarshalJSON() ([]byte, error) { argument
39 if a.Annotator != "" {
[all …]
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/
DTextClassifierSettingsTest.java101 "manifest_url_annotator_en", "https://annotator-en", in getLanguageTagsForManifestAndUrlMap()
102 "manifest_url_annotator_en-us", "https://annotator-en-us", in getLanguageTagsForManifestAndUrlMap()
103 "manifest_url_annotator_zh-hant-hk", "https://annotator-zh", in getLanguageTagsForManifestAndUrlMap()
106 assertThat(settings.getLanguageTagAndManifestUrlMap(ModelType.ANNOTATOR)) in getLanguageTagsForManifestAndUrlMap()
109 "en", "https://annotator-en", in getLanguageTagsForManifestAndUrlMap()
110 "en-us", "https://annotator-en-us", in getLanguageTagsForManifestAndUrlMap()
111 "zh-hant-hk", "https://annotator-zh"))); in getLanguageTagsForManifestAndUrlMap()
115 "manifest_url_annotator_en", "https://annotator-en", in getLanguageTagsForManifestAndUrlMap()
116 "manifest_url_annotator_en-us", "https://annotator-en-us", in getLanguageTagsForManifestAndUrlMap()
117 "manifest_url_annotator_zh-hant-hk", "https://annotator-zh", in getLanguageTagsForManifestAndUrlMap()
[all …]
/external/spdx-tools/tvsaver/saver2v3/
Dsave_annotation_test.go16 Annotator: common.Annotator{AnnotatorType: "Person", Annotator: "John Doe"},
25 want := bytes.NewBufferString(`Annotator: Person: John Doe
48Annotator: common.Annotator{AnnotatorType: "Organization", Annotator: "John Doe, In…
57 want := bytes.NewBufferString(`Annotator: Organization: John Doe, Inc.
80 Annotator: common.Annotator{AnnotatorType: "Tool", Annotator: "magictool-1.1"},
89 want := bytes.NewBufferString(`Annotator: Tool: magictool-1.1
Dsave_annotation.go14 if ann.Annotator.Annotator != "" && ann.Annotator.AnnotatorType != "" {
15 fmt.Fprintf(w, "Annotator: %s: %s\n", ann.Annotator.AnnotatorType, ann.Annotator.Annotator)
/external/spdx-tools/tvsaver/saver2v2/
Dsave_annotation_test.go16 Annotator: common.Annotator{AnnotatorType: "Person", Annotator: "John Doe"},
25 want := bytes.NewBufferString(`Annotator: Person: John Doe
48Annotator: common.Annotator{AnnotatorType: "Organization", Annotator: "John Doe, In…
57 want := bytes.NewBufferString(`Annotator: Organization: John Doe, Inc.
80 Annotator: common.Annotator{AnnotatorType: "Tool", Annotator: "magictool-1.1"},
89 want := bytes.NewBufferString(`Annotator: Tool: magictool-1.1
Dsave_annotation.go14 if ann.Annotator.Annotator != "" && ann.Annotator.AnnotatorType != "" {
15 fmt.Fprintf(w, "Annotator: %s: %s\n", ann.Annotator.AnnotatorType, ann.Annotator.Annotator)
/external/spdx-tools/tvsaver/saver2v1/
Dsave_annotation_test.go16 Annotator: common.Annotator{AnnotatorType: "Person", Annotator: "John Doe"},
25 want := bytes.NewBufferString(`Annotator: Person: John Doe
48Annotator: common.Annotator{AnnotatorType: "Organization", Annotator: "John Doe, In…
57 want := bytes.NewBufferString(`Annotator: Organization: John Doe, Inc.
80 Annotator: common.Annotator{AnnotatorType: "Tool", Annotator: "magictool-1.1"},
89 want := bytes.NewBufferString(`Annotator: Tool: magictool-1.1
Dsave_annotation.go14 if ann.Annotator.Annotator != "" && ann.Annotator.AnnotatorType != "" {
15 fmt.Fprintf(w, "Annotator: %s: %s\n", ann.Annotator.AnnotatorType, ann.Annotator.Annotator)
/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator_test.cc17 #include "annotator/grammar/grammar-annotator.h"
21 #include "annotator/grammar/test-utils.h"
22 #include "annotator/grammar/utils.h"
23 #include "annotator/model_generated.h"
66 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()
[all …]
/external/libtextclassifier/native/
DJavaTests.bp26 "annotator/pod_ner/pod-ner-impl_test.cc",
27 "annotator/datetime/regex-parser_test.cc",
28 "annotator/datetime/grammar-parser_test.cc",
29 "annotator/datetime/datetime-grounder_test.cc",
41 "annotator/grammar/grammar-annotator_test.cc",
42 "annotator/grammar/test-utils.cc",
43 "annotator/annotator_test-include.cc",
44 "annotator/number/number_test-include.cc",
DFlatBufferHeaders.bp138 srcs: ["annotator/entity-data.fbs"],
139 out: ["annotator/entity-data_generated.h"],
145 srcs: ["annotator/person_name/person_name_model.fbs"],
146 out: ["annotator/person_name/person_name_model_generated.h"],
152 srcs: ["annotator/experimental/experimental.fbs"],
153 out: ["annotator/experimental/experimental_generated.h"],
159 srcs: ["annotator/model.fbs"],
160 out: ["annotator/model_generated.h"],
166 srcs: ["annotator/datetime/datetime.fbs"],
167 out: ["annotator/datetime/datetime_generated.h"],
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/dexbacked/raw/
DCdexDebugOffsetTable.java69 public static void annotate(@Nonnull DexAnnotator annotator, DexBuffer buffer) { in annotate() argument
70 DexReader reader = buffer.readerAt(annotator.getCursor()); in annotate()
72 SectionAnnotator debugInfoAnnotator = annotator.getAnnotator(ItemType.DEBUG_INFO_ITEM); in annotate()
74 int methodCount = annotator.dexFile.getMethodSection().size(); in annotate()
77annotator.annotate(0, "Offset chuck for methods %d-%d", methodIndex, Math.min(methodIndex+16, meth… in annotate()
78 annotator.indent(); in annotate()
86 annotator.annotate(2, "bitmask: 0b%s", sb.reverse()); in annotate()
88 int debugOffset = ((CDexBackedDexFile) annotator.dexFile).getDebugInfoBase(); in annotate()
95annotator.annotateTo(reader.getOffset(), "[method_id: %d]: offset_delta: %d (offset=0x%x)", in annotate()
100 annotator.dexFile.getMethodSection().get(methodIndex + i).toString()); in annotate()
[all …]
/external/libtextclassifier/native/annotator/vocab/
Dvocab-annotator.h21 #include "annotator/vocab/vocab-annotator-impl.h"
23 #include "annotator/vocab/vocab-annotator-dummy.h"
25 #error No vocab-annotator implementation specified.

12345678910>>...13