/* Copyright 2022 The TensorFlow Authors. All Rights Reserved.
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.
==============================================================================*/
syntax = "proto2";
package tflite.task.text;
import "tensorflow_lite_support/cc/task/core/proto/base_options.proto";
// Options for setting up an BertCluAnnotator.
// Next Id: 7
message BertCluAnnotatorOptions {
// Base options for configuring BertCluAnnotator, such as specifying the
// TfLite model file with metadata, accelerator options, etc.
optional tflite.task.core.BaseOptions base_options = 1;
// Max number of history turns to encode by the model.
optional int32 max_history_turns = 2 [default = 5];
// The threshold of domain prediction.
optional float domain_threshold = 3 [default = 0.5];
// The threshold of intent prediction.
optional float intent_threshold = 4 [default = 0.5];
// The threshold of categorical slot prediction.
optional float categorical_slot_threshold = 5 [default = 0.5];
// The threshold of mentioned slot prediction.
optional float mentioned_slot_threshold = 6 [default = 0.5];
}