Arguments pertaining to what data we are going to input our model for training and eval.
| 100 | |
| 101 | @dataclass |
| 102 | class DataTrainingArguments: |
| 103 | """ |
| 104 | Arguments pertaining to what data we are going to input our model for training and eval. |
| 105 | """ |
| 106 | |
| 107 | task: str = field( |
| 108 | default="summarization", |
| 109 | metadata={ |
| 110 | "help": "The name of the task, should be summarization (or summarization_{dataset} for evaluating " |
| 111 | "pegasus) or translation (or translation_{xx}_to_{yy})." |
| 112 | }, |
| 113 | ) |
| 114 | dataset_name: Optional[str] = field( |
| 115 | default=None, metadata={"help": "The name of the dataset to use (via the datasets library)."} |
| 116 | ) |
| 117 | dataset_config_name: Optional[str] = field( |
| 118 | default=None, metadata={"help": "The configuration name of the dataset to use (via the datasets library)."} |
| 119 | ) |
| 120 | text_column: Optional[str] = field( |
| 121 | default=None, |
| 122 | metadata={ |
| 123 | "help": "The name of the column in the datasets containing the full texts (for summarization)."}, |
| 124 | ) |
| 125 | summary_column: Optional[str] = field( |
| 126 | default=None, |
| 127 | metadata={ |
| 128 | "help": "The name of the column in the datasets containing the summaries (for summarization)."}, |
| 129 | ) |
| 130 | train_file: Optional[str] = field( |
| 131 | default=None, metadata={"help": "The input training data file (a jsonlines or csv file)."} |
| 132 | ) |
| 133 | validation_file: Optional[str] = field( |
| 134 | default=None, |
| 135 | metadata={ |
| 136 | "help": "An optional input evaluation data file to evaluate the metrics (rouge/sacreblue) on " |
| 137 | "(a jsonlines or csv file)." |
| 138 | }, |
| 139 | ) |
| 140 | test_file: Optional[str] = field( |
| 141 | default=None, |
| 142 | metadata={ |
| 143 | "help": "An optional input test data file to evaluate the metrics (rouge/sacreblue) on " |
| 144 | "(a jsonlines or csv file)." |
| 145 | }, |
| 146 | ) |
| 147 | overwrite_cache: bool = field( |
| 148 | default=False, metadata={"help": "Overwrite the cached training and evaluation sets"} |
| 149 | ) |
| 150 | preprocessing_num_workers: Optional[int] = field( |
| 151 | default=None, |
| 152 | metadata={"help": "The number of processes to use for the preprocessing."}, |
| 153 | ) |
| 154 | max_source_length: Optional[int] = field( |
| 155 | default=1024, |
| 156 | metadata={ |
| 157 | "help": "The maximum total input sequence length after tokenization. Sequences longer " |
| 158 | "than this will be truncated, sequences shorter will be padded." |
| 159 | }, |
nothing calls this directly
no outgoing calls
no test coverage detected