google / sentencepiece

Unsupervised text tokenizer for Neural Network-based text generation.
Apache License 2.0
10.26k stars 1.17k forks source link

Error Attribute Error: type object 'SentencePieceTrainer' has no attribute 'train'. Did you mean: 'Train'? #1046

Open bop578530 opened 2 months ago

bop578530 commented 2 months ago

spm.SentencePieceTrainer.train('--input=dict.ja.txt --model_prefix=m --vocab_size=27034') this line is showing the error

taku910 commented 1 month ago

Well, we could not reproduce the error in the latest version 0.2.0. Could you check the version?