We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c62f56a commit 9e44ff5Copy full SHA for 9e44ff5
1 file changed
renard/pipeline/relation_extraction.py
@@ -94,9 +94,9 @@ def _triple_precision_recall_f1(
94
95
96
def train_model_on_ARF(
97
- model: str | PreTrainedModel,
+ model: Union[str, PreTrainedModel],
98
targs: TrainingArguments,
99
- tokenizer: PreTrainedTokenizerFast | None = None,
+ tokenizer: Union[PreTrainedTokenizerFast, None] = None,
100
) -> PreTrainedModel:
101
if isinstance(model, str):
102
assert tokenizer is None
0 commit comments