MCPcopy
hub / github.com/QData/TextAttack / decode

Method decode

textattack/models/tokenizers/t5_tokenizer.py:60–62  ·  view source on GitHub ↗

Converts IDs (typically generated by the model) back to a string.

(self, ids)

Source from the content-addressed store, hash-verified

58 return self.tokenizer(text, *args, **kwargs)
59
60 def decode(self, ids):
61 """Converts IDs (typically generated by the model) back to a string."""
62 return self.tokenizer.decode(ids)

Callers 7

__call__Method · 0.45
test_command_line_evalFunction · 0.45
update_testFunction · 0.45
test_command_line_listFunction · 0.45
test_train_tinyFunction · 0.45
test_command_line_attackFunction · 0.45

Calls

no outgoing calls

Tested by 6

test_command_line_evalFunction · 0.36
update_testFunction · 0.36
test_command_line_listFunction · 0.36
test_train_tinyFunction · 0.36
test_command_line_attackFunction · 0.36