Adding a Deep Nearest Class Means Classifier model to Flair #3532
Annotations
4 errors and 1 warning
Run tests:
flair/__init__.py#L1
mypy-status
mypy exited with status 1.
|
Run tests:
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]
|
Run tests:
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]
|
Run tests
Process completed with exit code 1.
|
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/
|
Loading