MCPcopy Create free account
hub / github.com/HA-Transformer/MAT / string

Method string

fairseq/data/dictionary.py:63–78  ·  view source on GitHub ↗

Helper for converting a tensor of token indices to a string. Can optionally remove BPE symbols or escape words.

(self, tensor, bpe_symbol=None, escape_unk=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 13

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
post_process_predictionFunction · 0.45
align_bpe_to_wordsFunction · 0.45
decodeMethod · 0.45
fill_maskMethod · 0.45
mainFunction · 0.45
disambiguate_pronounMethod · 0.45

Calls 1

eosMethod · 0.95

Tested by

no test coverage detected