26#include "ConversionInspection.hpp"
27#include "Segmentation.hpp"
52 virtual std::string
Convert(std::string_view text)
const = 0;
85 : converter(converter), maxKeepChars(maxKeepChars) {}
93 std::string ConvertChunk(std::string_view input);
102 std::string Finish(std::string_view input);
104 std::string Finish();
107 ConverterPtr converter;
Abstract base for full-text converters.
Definition Converter.hpp:44
virtual ConversionInspectionResult Inspect(std::string_view text) const =0
Converts text and returns a detailed inspection result that includes the initial segmentation,...
virtual std::string Convert(std::string_view text) const =0
Converts text and returns the result.
virtual SegmentationPtr GetSegmentation() const =0
Returns the segmentation used by this converter, or nullptr if the converter has no single segmentati...
virtual ConversionChainPtr GetConversionChain() const =0
Returns the conversion chain used by this converter, or nullptr if the converter has no single chain ...
ConverterStream(ConverterPtr converter, size_t maxKeepChars=16)
Definition Converter.hpp:84
Full inspection result returned by Converter::Inspect().
Definition ConversionInspection.hpp:52