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

Concatenates the tokens (Hugging Face's Fuse decoder). More...

#include <tokenizer_components.hpp>

Inheritance diagram for pulsatrix::FuseDecoder:
Collaboration diagram for pulsatrix::FuseDecoder:

Public Member Functions

std::string decode (const std::vector< std::string > &tokens) const override
 The decoded text: decode_chain() joined.
 
- Public Member Functions inherited from pulsatrix::Decoder
virtual ~Decoder ()=default
 
virtual std::vector< std::string > decode_chain (std::vector< std::string > tokens) const
 The tokens after this decoder: by default decode()'s text as one token.
 

Detailed Description

Concatenates the tokens (Hugging Face's Fuse decoder).

Member Function Documentation

◆ decode()

std::string pulsatrix::FuseDecoder::decode ( const std::vector< std::string > &  tokens) const
overridevirtual

The decoded text: decode_chain() joined.

Reimplemented from pulsatrix::Decoder.


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