/usr/local/lib/python3.6/site-packages/transformers/data/datasets/__pycache__
Edit: /usr/local/lib/python3.6/site-packages/transformers/data/datasets/__pycache__/glue.cpython-36.pyc (4701B)
3
Eg @ s d dl Z d dlZd dlZd dlmZmZ d dlmZ d dlm Z m
Z
mZ d dlZd dl
mZ d dlmZ ddlmZ dd lmZ d
dlmZmZmZ d
dlmZ ejeZeG d
d dZG dd deZG dd deZ dS ) N) dataclassfield)Enum)ListOptionalUnion)Dataset)FileLock )PreTrainedTokenizerBase)logging )!glue_convert_examples_to_featuresglue_output_modesglue_processors)
InputFeaturesc @ st e Zd ZU dZedddjej idZe eddidZ
e
edddid Zeed
ddid Z
e
dd
ZdS )GlueDataTrainingArgumentsz
Arguments pertaining to what data we are going to input our model for training and eval.
Using `HfArgumentParser` we can turn this class into argparse arguments to be able to specify them on the command
line.
helpz"The name of the task to train on: z, )metadatazUThe input data dir. Should contain the .tsv files (or other data files) for the task. zThe maximum total input sequence length after tokenization. Sequences longer than this will be truncated, sequences shorter will be padded.)defaultr Fz1Overwrite the cached training and evaluation setsc C s | j j | _ d S )N) task_namelower)self r I/usr/local/lib/python3.6/site-packages/transformers/data/datasets/glue.py
__post_init__<