Model args for a SpanExtractionModel
| 159 | |
| 160 | @dataclass |
| 161 | class SpanExtractionArgs(ModelArgs): |
| 162 | """ |
| 163 | Model args for a SpanExtractionModel |
| 164 | """ |
| 165 | |
| 166 | model_class: str = "QuestionAnsweringModel" |
| 167 | doc_stride: int = 384 |
| 168 | early_stopping_metric: str = "correct" |
| 169 | early_stopping_metric_minimize: bool = False |
| 170 | lazy_loading: bool = False |
| 171 | max_answer_length: int = 100 |
| 172 | max_query_length: int = 64 |
| 173 | n_best_size: int = 20 |
| 174 | null_score_diff_threshold: float = 0.0 |
| 175 | evaluate_during_training_steps: int = 20 |
| 176 | evaluate_during_training: bool = True |
| 177 | |
| 178 | |
| 179 | @dataclass |
no outgoing calls
no test coverage detected