MCPcopy Create free account
hub / github.com/ModalityDance/Omni-R1 / update

Method update

src/transformers/src/transformers/tokenization_utils.py:65–73  ·  view source on GitHub ↗

Updates the Trie with new tokens provided as arguments. Args: *args: Variable number of words to be added to the Trie.

(self, *args)

Source from the content-addressed store, hash-verified

63 self.update(*args)
64
65 def update(self, *args):
66 """
67 Updates the Trie with new tokens provided as arguments.
68
69 Args:
70 *args: Variable number of words to be added to the Trie.
71 """
72 for token in tuple(*args):
73 self.add(token)
74
75 def add(self, word: str):
76 """

Callers 2

__init__Method · 0.95
__init__Method · 0.45

Calls 1

addMethod · 0.95

Tested by

no test coverage detected