dmlc / gluon-nlp

NLP made easy
https://nlp.gluon.ai/
Apache License 2.0
2.55k stars 538 forks source link

Can not run the script #1286

Open HuFBH opened 4 years ago

HuFBH commented 4 years ago

Hi, i am getting started in NLP area.

i have got in trouble,when i run the script "run_glue.py" . it said that ModuleNotFoundError: No module named 'classification', and i can not find the module neither.

here is my following page: gluon-nlp modelzoo : https://gluon-nlp.mxnet.io/model_zoo/language_model/index.html#sentence-classification command : https://github.com/dmlc/web-data/blob/master/gluonnlp/logs/language_model/xlnet_l12_h768_a12_finetuned_SST_mxnet1.6.0rc1.sh

Thanks a lot.

szha commented 4 years ago

@HuFBH thanks for reporting. Indeed it seems to be missing from the downloaded zipfile. For now, you can use sentence classification in https://gluon-nlp.mxnet.io/v0.9.x/model_zoo/bert/index.html

cc @chenw23 @eric-haibin-lin

chenw23 commented 4 years ago

Hi It's from here scripts/bert/data/classification.py Maybe you didn't have proper configurations to let your interpreter find it automatically

szha commented 4 years ago

@chenw23 if you download the zip file from the language model page, you will see that the BERT scripts are not in it.

chenw23 commented 4 years ago

Oh sorry. I thought they were cloning the whole project and develop in the project.