INNER CODE UNIT · Python
convert_examples_to_features
hooshvare/parsbert · scripts/utils.py:121
def convert_examples_to_features(
examples: Union[List[InputExample], "tf.data.Dataset"],
tokenizer: PreTrainedTokenizer,
max_length: Optional[int] = None,
task=None,
label_list=None,
output_mode=None):
return _convert_examples_to_features(
examples,
tokenizer,
max_length=max_length,
task=task,
label_list=label_list,
output_mode=output_mode
)
class Split(Enum):