Update lm_finetuning.py
Browse files- 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 |
)
|