pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::PrependNormalizer Class Reference

Puts a string in front of non-empty text (Hugging Face's Prepend normalizer). More...

#include <sentencepiece_bpe.hpp>

Inheritance diagram for pulsatrix::PrependNormalizer:
Collaboration diagram for pulsatrix::PrependNormalizer:

Public Member Functions

 PrependNormalizer (std::string prepend)
 
void normalize (NormalizedString &text) const override
 
- Public Member Functions inherited from pulsatrix::Normalizer
virtual ~Normalizer ()=default
 

Detailed Description

Puts a string in front of non-empty text (Hugging Face's Prepend normalizer).

Constructor & Destructor Documentation

◆ PrependNormalizer()

pulsatrix::PrependNormalizer::PrependNormalizer ( std::string  prepend)
explicit

Member Function Documentation

◆ normalize()

void pulsatrix::PrependNormalizer::normalize ( NormalizedString &  text) const
overridevirtual

Implements pulsatrix::Normalizer.


The documentation for this class was generated from the following file: