Skip to content

Adding a Deep Nearest Class Means Classifier model to Flair #2472

Adding a Deep Nearest Class Means Classifier model to Flair

Adding a Deep Nearest Class Means Classifier model to Flair #2472

Triggered via pull request November 24, 2024 01:59
Status Failure
Total duration 14m 59s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 1 warning
test: flair/__init__.py#L1
mypy-status mypy exited with status 1.
test: flair/models/relation_classifier_model.py#L1
flair/models/relation_classifier_model.py 593: error: Return type "Optional[tuple[Tensor, int]]" of "predict" incompatible with return type "Union[list[EncodedSentence], tuple[float, int], None]" in supertype "DefaultClassifier" [override] 632: error: Incompatible types in assignment (expression has type "Union[list[EncodedSentence], tuple[float, int], None]", variable has type "Optional[tuple[Tensor, int]]") [assignment] 650: error: Incompatible types in assignment (expression has type "Union[list[EncodedSentence], tuple[float, int], None]", variable has type "Optional[tuple[Tensor, int]]") [assignment]
test: flair/nn/model.py#L1
flair/nn/model.py 825: error: Incompatible return value type (got "Union[list[DT], DT]", expected "Union[list[DT], tuple[float, int], None]") [return-value] 940: error: Incompatible return value type (got "tuple[Tensor, int]", expected "Union[list[DT], tuple[float, int], None]") [return-value]
test
Process completed with exit code 1.
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-python@v4, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/