#include "tensorflow_lite_support/cc/text/tokenizers/tokenizer_utils.h"
#include "absl/memory/memory.h"
#include "absl/status/status.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "tensorflow_lite_support/cc/common.h"
#include "tensorflow_lite_support/cc/port/status_macros.h"
#include "tensorflow_lite_support/cc/text/tokenizers/bert_tokenizer.h"
#include "tensorflow_lite_support/cc/text/tokenizers/regex_tokenizer.h"
#include "tensorflow_lite_support/metadata/metadata_schema_generated.h"
namespace tflite {
namespace support {
namespace text {
namespace tokenizer {
ProcessUnit;
CreateStatusWithPayload;
StatusOr;
TfLiteSupportStatus;
namespace {
StatusOr<absl::string_view> CheckAndLoadFirstAssociatedFile(
const flatbuffers::Vector<flatbuffers::Offset<tflite::AssociatedFile>>*
associated_files,
const tflite::metadata::ModelMetadataExtractor* metadata_extractor) { … }
}
StatusOr<std::unique_ptr<Tokenizer>> CreateTokenizerFromProcessUnit(
const tflite::ProcessUnit* tokenizer_process_unit,
const tflite::metadata::ModelMetadataExtractor* metadata_extractor) { … }
}
}
}
}