MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / tokenize

Method tokenize

mlx/data/core/Tokenizer.cpp:142–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142std::shared_ptr<Graph<int64_t>> Tokenizer::tokenize(
143 const std::string& input) const {
144 return ::mlx::data::core::tokenize(trie_, input, ignoreUnk_);
145}
146
147std::vector<int64_t> Tokenizer::tokenize_shortest(
148 const std::string& input) const {

Callers 1

apply_keyMethod · 0.45

Calls 1

tokenizeFunction · 0.70

Tested by

no test coverage detected