MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / decode

Method decode

tests/input/test_text_processor.py:80–81  ·  view source on GitHub ↗
(self, token_ids, **kwargs)

Source from the content-addressed store, hash-verified

78 return [self._value(token) for token in tokens]
79
80 def decode(self, token_ids, **kwargs):
81 return " ".join(str(t) for t in token_ids)
82
83 def decode_token(self, token_ids, prefix_offset, read_offset):
84 start = read_offset

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected