google-research / albert

ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
Apache License 2.0
3.23k stars 570 forks source link

ModuleNotFoundError: No module named 'albert' #199

Closed elliotthwang closed 4 years ago

elliotthwang commented 4 years ago

Traceback (most recent call last): File "/content/squad_base_dir/run_squad_v1.py", line 27, in from albert import fine_tuning_utils ModuleNotFoundError: No module named 'albert'

Please help!

gongel commented 4 years ago

Just change "from albert import fine_tuning_utils" to "import fine_tuning_utils"

clrajapaksha commented 4 years ago

You should run this from outside of albert directory. No need to change the source code

elliotthwang commented 4 years ago

@gongel @clrajapaksha Thank a lot!