google / sentencepiece

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

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

Open bop578530 opened 3 weeks ago

bop578530 commented 3 weeks ago

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