pytorch-transformers-classification icon indicating copy to clipboard operation
pytorch-transformers-classification copied to clipboard

How to run utils.py?

Open Mahhos opened this issue 4 years ago • 3 comments

Is there any specific parameter that we should pass to run the utils.py? Running the file itself seems does nothing. It does not create the InputFeature objects or anything. What should we expect utils.py return/create? I have already done the data preprocessing part and generated the train.tsv and dev.tsv files. They are both on my data/ folder.

Mahhos avatar Nov 04 '19 19:11 Mahhos

You don't need to run utils.py. The readme tells you which notebooks to run.

ThilinaRajapakse avatar Nov 04 '19 19:11 ThilinaRajapakse

Thanks for the clarification. I was following the steps in the A Hands-On Guide To Text Classification With Transformer Models (XLNet, BERT, XLM, RoBERTa) and thought we should run utils.py.

Mahhos avatar Nov 04 '19 19:11 Mahhos

No problem. The stuff in utils is used in the next notebook.

ThilinaRajapakse avatar Nov 04 '19 19:11 ThilinaRajapakse