Traceback (most recent call last):
File "tutorial.py", line 6, in
model_name='tutorial', vocab_size=20)
File "/media/bin_lab/C4F6073207B3A949/Linux/Bert/BERT-keras-master/data/vocab.py", line 59, in init
spm.SentencePieceTrainer.Train(
NameError: name 'spm' is not defined
oh, I should have created a requirements file
in order to use sentencepiece encoder you need sentencepiece package
you can install it with:
pip install sentencepiece
Traceback (most recent call last): File "tutorial.py", line 6, in
model_name='tutorial', vocab_size=20)
File "/media/bin_lab/C4F6073207B3A949/Linux/Bert/BERT-keras-master/data/vocab.py", line 59, in init
spm.SentencePieceTrainer.Train(
NameError: name 'spm' is not defined