Datasets:

Languages:
English
ArXiv:
License:
asahi417 commited on
Commit
39fc020
1 Parent(s): e9bf213

Update lm_finetuning.py

Browse files
Files changed (1) hide show
  1. lm_finetuning.py +1 -1
lm_finetuning.py CHANGED
@@ -158,7 +158,7 @@ def main():
158
  model_init=lambda x: AutoModelForSequenceClassification.from_pretrained(
159
  opt.model,
160
  return_dict=True,
161
- num_labels=len(dataset[opt.split_train]['label'][0])
162
  id2label=ID2LABEL,
163
  label2id=LABEL2ID
164
  )
 
158
  model_init=lambda x: AutoModelForSequenceClassification.from_pretrained(
159
  opt.model,
160
  return_dict=True,
161
+ num_labels=len(dataset[opt.split_train]['label'][0]),
162
  id2label=ID2LABEL,
163
  label2id=LABEL2ID
164
  )