Gluon-nlp: Can not run the script

Created on 31 Jul 2020  路  4Comments  路  Source: dmlc/gluon-nlp

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.

bug

All 4 comments

@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

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

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eric-haibin-lin picture eric-haibin-lin  路  3Comments

rondogency picture rondogency  路  4Comments

szha picture szha  路  6Comments

imgarylai picture imgarylai  路  7Comments

haven-jeon picture haven-jeon  路  4Comments