#include "tensorflow_lite_support/cc/task/processor/bert_preprocessor.h"
#include "absl/status/status.h"
#include "absl/strings/ascii.h"
#include "tensorflow_lite_support/cc/common.h"
#include "tensorflow_lite_support/cc/port/status_macros.h"
#include "tensorflow_lite_support/cc/task/core/task_utils.h"
#include "tensorflow_lite_support/cc/text/tokenizers/tokenizer_utils.h"
#include "tensorflow_lite_support/cc/utils/common_utils.h"
namespace tflite {
namespace task {
namespace processor {
CreateStatusWithPayload;
StatusOr;
TfLiteSupportStatus;
CreateTokenizerFromProcessUnit;
TokenizerResult;
PopulateTensor;
constexpr int kTokenizerProcessUnitIndex = …;
constexpr int kIdsTensorIndex = …;
constexpr int kSegmentIdsTensorIndex = …;
constexpr int kMaskTensorIndex = …;
constexpr char kClassificationToken[] = …;
constexpr char kSeparator[] = …;
StatusOr<std::unique_ptr<BertPreprocessor>> BertPreprocessor::Create(
tflite::task::core::TfLiteEngine* engine,
const std::initializer_list<int> input_tensor_indices) { … }
absl::Status BertPreprocessor::Init() { … }
absl::Status BertPreprocessor::Preprocess(const std::string& input_text) { … }
}
}
}