From c121edde42813cdda735d226c51d5fd6538ca039 Mon Sep 17 00:00:00 2001 From: Tony Mak Date: Thu, 28 May 2020 15:25:17 +0100 Subject: Export libtextclassifier Bug: 157134682 Test: atest TextClassifierServiceTest Change-Id: I008e36d4af9bb27e889c68a6b881f87f9878b77d --- native/annotator/experimental/experimental-dummy.h | 3 ++- native/annotator/experimental/experimental.fbs | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'native/annotator/experimental') diff --git a/native/annotator/experimental/experimental-dummy.h b/native/annotator/experimental/experimental-dummy.h index 0d50bca..389aae1 100644 --- a/native/annotator/experimental/experimental-dummy.h +++ b/native/annotator/experimental/experimental-dummy.h @@ -33,7 +33,8 @@ class ExperimentalAnnotator { // always disabled; static constexpr bool IsEnabled() { return false; } - explicit ExperimentalAnnotator(const FeatureProcessor& feature_processor, + explicit ExperimentalAnnotator(const ExperimentalModel* model, + const FeatureProcessor& feature_processor, const UniLib& unilib) {} bool Annotate(const UnicodeText& context, diff --git a/native/annotator/experimental/experimental.fbs b/native/annotator/experimental/experimental.fbs index fff2d9e..6e15d04 100755 --- a/native/annotator/experimental/experimental.fbs +++ b/native/annotator/experimental/experimental.fbs @@ -1,3 +1,19 @@ +// +// Copyright (C) 2018 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + namespace libtextclassifier3; table ExperimentalModel { } -- cgit v1.2.3