mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 19:21:31 +06:00
Remove assert on optional arg
This commit is contained in:
parent
1eb40338ac
commit
96881729ce
@ -241,9 +241,6 @@ class DataTrainingArguments:
|
||||
def __post_init__(self):
|
||||
if self.dataset_name is None and self.train_file is None and self.validation_file is None:
|
||||
raise ValueError("Need either a dataset name or a training/validation file.")
|
||||
elif self.lang is None:
|
||||
raise ValueError("Need to specify the language.")
|
||||
|
||||
else:
|
||||
if self.train_file is not None:
|
||||
extension = self.train_file.split(".")[-1]
|
||||
|
Loading…
Reference in New Issue
Block a user