MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / encode

Method encode

src/common/tokenizer/tokenizer.cpp:156–158  ·  view source on GitHub ↗

\brief Encode the text \param text the text \return the encoded tokens

Source from the content-addressed store, hash-verified

154/// \param text the text
155/// \return the encoded tokens
156std::vector<int> Tokenizer::encode(const std::string& text) {
157 return this->tokenizer->Encode(text);
158}
159
160/// \brief Decode the tokens
161/// \param tokens the tokens

Callers 15

insertMethod · 0.80
setup_tokenizerMethod · 0.80
insertMethod · 0.80
insertMethod · 0.80
insertMethod · 0.80
_sample_in_toolMethod · 0.80
insertMethod · 0.80
insertMethod · 0.80
insertMethod · 0.80
insertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected