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

run_classifier.py invalid arguments #72

Open
crazylazylife opened this issue Apr 12, 2020 · 2 comments
Open

run_classifier.py invalid arguments #72

crazylazylife opened this issue Apr 12, 2020 · 2 comments

Comments

@crazylazylife
Copy link

I downloaded the sst_clf_16.pt file to perform classification from a csv file. Thw code I wrote:

python run_classifier.py --load_model sst_clf_16.pt --fp16 --data upload_processed_tweet.csv --text-key text --write-results output.csv

The error I got was that the --load_model is an "unrecognized argument":

run_classifier.py: error: unrecognized arguments: --load_model sst_clf_16.pt

@krishh-konar
Copy link

krishh-konar commented May 6, 2020

try using --load instead of --load_model.

usage: run_classifier.py [-h] [--model MODEL] [--lr LR]
                         [--constant-decay CONSTANT_DECAY] [--clip CLIP]
                         [--epochs EPOCHS] [--tied] [--seed SEED]
                         [--log-interval N] [--save SAVE] [--load LOAD]

@Saumajit
Copy link

Saumajit commented Aug 11, 2020

@krishh-konar I have tried to run_classifier on semeval data for prediction. I have used --data, --load, --text-key and --write-results as the arguments in the command line for running the run_classifier.py It is showing me /bin/bash: line 113 segmentation fault (core dumped)
Can you please provide the command line in detail?

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

3 participants