salesforce / decaNLP

The Natural Language Decathlon: A Multitask Challenge for NLP
BSD 3-Clause "New" or "Revised" License
2.34k stars 474 forks source link

no attribute "intermediate_cove" error #33

Closed andyhyh closed 5 years ago

andyhyh commented 5 years ago

no attribute "intermediate_cove" error when using predict.py to perform custom data inference

salesforce-cla[bot] commented 5 years ago

Thanks for the contribution! Before we can merge this, we need @huangyh1108 to sign the Salesforce.com Contributor License Agreement.

code-cse commented 5 years ago

Add given below lines in def get_args() function of predict.py file and It will work.

parser.add_argument('--cove', action='store_true', help='whether to use contextualized word vectors (McCann et al. 2017)')

parser.add_argument('--intermediate_cove', action='store_true', help='whether to use the intermediate layers of contextualized word vectors (McCann et al. 2017)')