chromium/components/live_caption/greedy_text_stabilizer.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/live_caption/greedy_text_stabilizer.h"

#include <regex>
#include <string>
#include <unordered_map>
#include <vector>

#include "base/strings/string_tokenizer.h"

namespace {
std::string RemoveTrailingSpace(const std::string& input) {}
}  // namespace

namespace captions {

GreedyTextStabilizer::GreedyTextStabilizer(int min_token_frequency)
    :{}

GreedyTextStabilizer::~GreedyTextStabilizer() = default;

std::string GreedyTextStabilizer::UpdateText(const std::string& input_text,
                                             const bool is_final) {}

void GreedyTextStabilizer::Reset() {}

std::vector<std::string> GreedyTextStabilizer::Tokenize(
    const std::string& input_text) {}

bool GreedyTextStabilizer::IsMode(
    const std::string& token,
    const std::unordered_map<std::string, int>& token_histogram) {}

}  // namespace captions