Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

you may miss something the model needed #1

Open
yuanjun1991 opened this issue May 31, 2019 · 1 comment
Open

you may miss something the model needed #1

yuanjun1991 opened this issue May 31, 2019 · 1 comment

Comments

@yuanjun1991
Copy link

when i download the ernie_base from panbaidu,and run fine_tune_ernie.py , it raise error as follows:

File "/Users/yuanjun/Downloads/ERNIE-text-classification-pytorch-master/fine_tune_ernie.py", line 8, in
from pyernie.io.dataset import CreateDataset
File "/Users/yuanjun/Downloads/ERNIE-text-classification-pytorch-master/pyernie/io/dataset.py", line 5, in
from pytorch_pretrained_bert.tokenization import BertTokenizer
ModuleNotFoundError: No module named 'pytorch_pretrained_bert'

@lonePatient
Copy link
Owner

@yuanjun1991 hi,in file "/pyernie/io/dataset.py", line 5 , changed to from ..model.ernie.tokenization import BertTokenizer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants