Skip to content

3284 bug support transformers 4310 #1914

3284 bug support transformers 4310

3284 bug support transformers 4310 #1914

Triggered via pull request July 31, 2023 18:46
Status Failure
Total duration 29m 31s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors
test: flair/data.py#L341
ruff pytest_ruff.RuffError: flair/data.py:146:12: SIM118 [*] Use `"add_unk" not in self.__dict__` instead of `"add_unk" not in self.__dict__.keys()` | 144 | self.__dict__ = d 145 | # set 'add_unk' if the dictionary was created with a version of Flair older than 0.9 146 | if "add_unk" not in self.__dict__.keys(): | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SIM118 147 | self.__dict__["add_unk"] = b"<unk>" in self.__dict__["idx2item"] | = help: Convert to `"add_unk" not in self.dict`
test: flair/embeddings/base.py#L341
ruff pytest_ruff.RuffError: flair/embeddings/base.py:197:20: SIM118 [*] Use `self.name not in token._embeddings` instead of `self.name not in token._embeddings.keys()` | 195 | for sentence in data_points: 196 | for token in sentence.tokens: 197 | if self.name not in token._embeddings.keys(): | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SIM118 198 | return False 199 | return True | = help: Convert to `self.name not in token._embeddings`
test: flair/embeddings/legacy.py#L341
ruff pytest_ruff.RuffError: flair/embeddings/legacy.py:1333:16: SIM118 [*] Use `self.name not in sentence._embeddings` instead of `self.name not in sentence._embeddings.keys()` | 1332 | for sentence in sentences: 1333 | if self.name not in sentence._embeddings.keys(): | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SIM118 1334 | everything_embedded = False | = help: Convert to `self.name not in sentence._embeddings`
test
Process completed with exit code 1.