Update documentation for Hunflair2 release #2118
Annotations
5 errors and 1 warning
test:
flair/__init__.py#L1
mypy-status
mypy exited with status 1.
|
test:
flair/models/__init__.py#L346
ruff
pytest_ruff.RuffError: flair/models/__init__.py:1:1: I001 [*] Import block is un-sorted or un-formatted
|
1 | / from .clustering import ClusteringModel
2 | | from .entity_linker_model import SpanClassifier
3 | | from .entity_mention_linking import EntityMentionLinker
4 | | from .language_model import LanguageModel
5 | | from .lemmatizer_model import Lemmatizer
6 | | from .multitask_model import MultitaskModel
7 | | from .pairwise_classification_model import TextPairClassifier
8 | | from .pairwise_regression_model import TextPairRegressor
9 | | from .regexp_tagger import RegexpTagger
10 | | from .relation_classifier_model import RelationClassifier
11 | | from .relation_extractor_model import RelationExtractor
12 | | from .sequence_tagger_model import SequenceTagger
13 | | from .prefixed_tagger import PrefixedSequenceTagger # This import has to be after SequenceTagger!
14 | | from .tars_model import FewshotClassifier, TARSClassifier, TARSTagger
15 | | from .text_classification_model import TextClassifier
16 | | from .text_regression_model import TextRegressor
17 | | from .word_tagger_model import TokenClassifier, WordTagger
18 | |
19 | | __all__ = [
| |_^ I001
20 | "EntityMentionLinker",
21 | "SpanClassifier",
|
= help: Organize imports
|
test:
flair/models/__init__.py#L1
Black format check
--- /home/runner/work/flair/flair/flair/models/__init__.py 2024-02-23 14:51:50.615452+00:00
+++ /home/runner/work/flair/flair/flair/models/__init__.py 2024-02-23 14:54:59.842754+00:00
@@ -8,11 +8,11 @@
from .pairwise_regression_model import TextPairRegressor
from .regexp_tagger import RegexpTagger
from .relation_classifier_model import RelationClassifier
from .relation_extractor_model import RelationExtractor
from .sequence_tagger_model import SequenceTagger
-from .prefixed_tagger import PrefixedSequenceTagger # This import has to be after SequenceTagger!
+from .prefixed_tagger import PrefixedSequenceTagger # This import has to be after SequenceTagger!
from .tars_model import FewshotClassifier, TARSClassifier, TARSTagger
from .text_classification_model import TextClassifier
from .text_regression_model import TextRegressor
from .word_tagger_model import TokenClassifier, WordTagger
|
test:
flair/models/multitask_model.py#L1
flair/models/multitask_model.py
271: error: Incompatible types in assignment (expression has type "Path", variable has type "str") [assignment]
|
test
Process completed with exit code 1.
|
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|