// 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. #ifndef COMPONENTS_LIVE_CAPTION_GREEDY_TEXT_STABILIZER_H_ #define COMPONENTS_LIVE_CAPTION_GREEDY_TEXT_STABILIZER_H_ #include <string> #include <unordered_map> #include <vector> namespace captions { // Predicts the stable count of streaming token sequences. // This class has no knowledge of future partial results. It simply // receives one partial at a time and is forced to make a prediction on // the number of stable tokens using only the past partial results. // Implementation based off of https://goto.google.com/w2t. class GreedyTextStabilizer { … }; } // namespace captions #endif // COMPONENTS_LIVE_CAPTION_GREEDY_TEXT_STABILIZER_H_