keep-loving-pythonのブログ

Pythonを愛し続けたいです(Pythonが流行っている限りですが。。。)

解決策。AttributeError: 'ByteLevelBPETokenizer' object has no attribute 'save_model'

エラー

環境

windows10
python3.7

エラーの内容

AttributeError: 'ByteLevelBPETokenizer' object has no attribute 'save_model'

詳細

Traceback (most recent call last):
  File "_espe00_bert.py", line 25, in <module>
    tokenizer.save_model(".", "esperberto")
AttributeError: 'ByteLevelBPETokenizer' object has no attribute 'save_model'

モジュールのバージョン

tokenizers 0.7.0

解決策

python -m pip install tokenizers==0.8.0rc1

↑たぶん、これ以上ならOK?

コメント

なんでもコメント頂けると参考になりまーす。