google / sentencepiece

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

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

Open bop578530 opened 3 months ago

bop578530 commented 3 months ago

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

taku910 commented 2 months ago

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