Entity Mention Linker #2064
Annotations
3 errors
test:
flair/datasets/entity_linking.py#L341
ruff
pytest_ruff.RuffError: flair/datasets/entity_linking.py:1:1: I001 [*] Import block is un-sorted or un-formatted
|
1 | / import csv
2 | | import logging
3 | | import os
4 | | from pathlib import Path
5 | | from typing import Any, Dict, Iterable, Iterator, List, Optional, Union
6 | |
7 | | import requests
8 | |
9 | | import flair
10 | | from flair.data import Corpus, EntityCandidate, MultiCorpus, Sentence
11 | | from flair.datasets.sequence_labeling import (ColumnCorpus,
12 | | MultiFileColumnCorpus)
13 | | from flair.file_utils import cached_path, unpack_file
14 | | from flair.splitter import SegtokSentenceSplitter, SentenceSplitter
15 | |
16 | | log = logging.getLogger("flair")
| |_^ I001
|
= help: Organize imports
|
test:
flair/datasets/entity_linking.py#L1
Black format check
--- /home/runner/work/flair/flair/flair/datasets/entity_linking.py 2024-01-05 14:50:14.210796+00:00
+++ /home/runner/work/flair/flair/flair/datasets/entity_linking.py 2024-01-05 14:53:51.918002+00:00
@@ -6,12 +6,11 @@
import requests
import flair
from flair.data import Corpus, EntityCandidate, MultiCorpus, Sentence
-from flair.datasets.sequence_labeling import (ColumnCorpus,
- MultiFileColumnCorpus)
+from flair.datasets.sequence_labeling import ColumnCorpus, MultiFileColumnCorpus
from flair.file_utils import cached_path, unpack_file
from flair.splitter import SegtokSentenceSplitter, SentenceSplitter
log = logging.getLogger("flair")
|
test
Process completed with exit code 1.
|