"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "ec93b895c144b610c643eaab64784f2930a1a1e4"
Commit 96881729 authored by Sylvain Gugger's avatar Sylvain Gugger
Browse files

Remove assert on optional arg

parent 1eb40338
...@@ -241,9 +241,6 @@ class DataTrainingArguments: ...@@ -241,9 +241,6 @@ class DataTrainingArguments:
def __post_init__(self): def __post_init__(self):
if self.dataset_name is None and self.train_file is None and self.validation_file is None: 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.") 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: else:
if self.train_file is not None: if self.train_file is not None:
extension = self.train_file.split(".")[-1] extension = self.train_file.split(".")[-1]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment