MCPcopy
hub / github.com/FedML-AI/FedML / SpanExtractionArgs

Class SpanExtractionArgs

python/fedml/model/nlp/model_args.py:161–176  ·  view source on GitHub ↗

Model args for a SpanExtractionModel

Source from the content-addressed store, hash-verified

159
160@dataclass
161class 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

Callers 2

create_modelFunction · 0.85
load_synthetic_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected