MCPcopy Create free account
hub / github.com/modelscope/FunASR / decode

Method decode

funasr/tokenizer/abs_tokenizer.py:94–102  ·  view source on GitHub ↗

Decode. Args: text_ints: TODO.

(self, text_ints)

Source from the content-addressed store, hash-verified

92 return text_ints
93
94 def decode(self, text_ints):
95 """Decode.
96
97 Args:
98 text_ints: TODO.
99 """
100 token = self.ids2tokens(text_ints)
101 text = self.tokens2text(token)
102 return text
103
104 def get_num_vocabulary_size(self) -> int:
105 """Get num vocabulary size."""

Callers

nothing calls this directly

Calls 2

ids2tokensMethod · 0.95
tokens2textMethod · 0.95

Tested by

no test coverage detected