MCPcopy Index your code
hub / github.com/YunwenTechnology/QueryGeneration / tokenize

Method tokenize

tokenization/tokenization.py:295–346  ·  view source on GitHub ↗

Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perform tokenization using the given vocabulary. For example: input = "unaffable" output = ["un", "##aff", "##able"] Args: text: A single token or whitespace separ

(self, text)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

convert_to_unicodeFunction · 0.85
whitespace_tokenizeFunction · 0.85

Tested by

no test coverage detected