vocab_info_from_sentencepiece

fairseq2.data.text.vocab_info_from_sentencepiece(model)[source]

Return the vocabulary information of model.

Return type:

VocabularyInfo