Skip to content

Extend German LER Dataset #1907

Extend German LER Dataset

Extend German LER Dataset #1907

Triggered via pull request July 28, 2023 12:45
Status Failure
Total duration 36m 56s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
test: flair/training_utils.py#L341
ruff pytest_ruff.RuffError: flair/training_utils.py:69:16: UP032 [*] Use f-string instead of `format` call | 68 | def to_tsv(self): 69 | return "{}\t{}\t{}\t{}".format( | ________________^ 70 | | self.mean_squared_error(), 71 | | self.mean_absolute_error(), 72 | | self.pearsonr(), 73 | | self.spearmanr(), 74 | | ) | |_________^ UP032 75 | 76 | @staticmethod | = help: Convert to f-string
test: flair/datasets/document_classification.py#L341
ruff pytest_ruff.RuffError: flair/datasets/document_classification.py:1480:17: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 1479 | class GLUE_SST2(CSVClassificationCorpus): 1480 | label_map = {0: "negative", 1: "positive"} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUF012 1481 | 1482 | def __init__( |
test: flair/datasets/sequence_labeling.py#L341
ruff pytest_ruff.RuffError: flair/datasets/sequence_labeling.py:423:13: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 421 | SPACE_AFTER_KEY = "space-after" 422 | # special key for feature columns 423 | FEATS = ["feats", "misc"] | ^^^^^^^^^^^^^^^^^ RUF012 424 | # special key for dependency head id 425 | HEAD = ["head", "head_id"] | flair/datasets/sequence_labeling.py:425:12: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 423 | FEATS = ["feats", "misc"] 424 | # special key for dependency head id 425 | HEAD = ["head", "head_id"] | ^^^^^^^^^^^^^^^^^^^ RUF012 426 | 427 | def __init__( |
test: flair/embeddings/image.py#L341
ruff pytest_ruff.RuffError: flair/embeddings/image.py:76:39: RUF015 [*] Prefer `next(iter(self.url2tensor_dict.values()))` over single element slice | 74 | self.url2tensor_dict = url2tensor_dict 75 | self.name = name 76 | self.__embedding_length = len(list(self.url2tensor_dict.values())[0]) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUF015 77 | self.static_embeddings = True 78 | super().__init__() | = help: Replace with `next(iter(self.url2tensor_dict.values()))`
test: flair/models/relation_classifier_model.py#L341
ruff pytest_ruff.RuffError: flair/models/relation_classifier_model.py:52:32: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 50 | """The encoding of the head and tail entities in a sentence with a relation annotation.""" 51 | 52 | special_tokens: Set[str] = set() | ^^^^^ RUF012 53 | 54 | def __init__(self, add_special_tokens: bool = False) -> None: | flair/models/relation_classifier_model.py:86:32: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 84 | """ 85 | 86 | special_tokens: Set[str] = {"[HEAD]", "[TAIL]"} | ^^^^^^^^^^^^^^^^^^^^ RUF012 87 | 88 | def encode_head(self, head_span: Span, label: Label) -> str: | flair/models/relation_classifier_model.py:128:32: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 126 | """ 127 | 128 | special_tokens: Set[str] = {"[HEAD]", "[/HEAD]", "[TAIL]", "[/TAIL]"} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUF012 129 | 130 | def encode_head(self, head: Span, label: Label) -> str: |
test: flair/trainers/trainer.py#L341
ruff pytest_ruff.RuffError: flair/trainers/trainer.py:38:20: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 37 | class ModelTrainer(Pluggable): 38 | valid_events = { | ____________________^ 39 | | "after_setup", 40 | | "before_training_epoch", 41 | | "before_training_batch", 42 | | "before_training_optimizer_step", 43 | | "after_training_batch", 44 | | "after_training_epoch", 45 | | "after_evaluation", 46 | | "after_training_loop", 47 | | "training_interrupt", 48 | | "_training_finally", 49 | | "_training_exception", 50 | | "after_training", 51 | | "metric_recorded", 52 | | } | |_____^ RUF012 53 | 54 | def __init__(self, model: flair.nn.Model, corpus: Corpus) -> None: |
test: tests/embedding_test_utils.py#L341
ruff pytest_ruff.RuffError: tests/embedding_test_utils.py:16:40: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 14 | is_document_embedding: bool 15 | default_args: Dict[str, Any] 16 | valid_args: List[Dict[str, Any]] = [] | ^^ RUF012 17 | invalid_args: List[Dict[str, Any]] = [] 18 | invalid_names: List[str] = [] | tests/embedding_test_utils.py:17:42: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 15 | default_args: Dict[str, Any] 16 | valid_args: List[Dict[str, Any]] = [] 17 | invalid_args: List[Dict[str, Any]] = [] | ^^ RUF012 18 | invalid_names: List[str] = [] 19 | name_field: Optional[str] = None | tests/embedding_test_utils.py:18:32: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 16 | valid_args: List[Dict[str, Any]] = [] 17 | invalid_args: List[Dict[str, Any]] = [] 18 | invalid_names: List[str] = [] | ^^ RUF012 19 | name_field: Optional[str] = None 20 | weired_texts: List[str] = [ | tests/embedding_test_utils.py:20:31: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 18 | invalid_names: List[str] = [] 19 | name_field: Optional[str] = None 20 | weired_texts: List[str] = [ | _______________________________^ 21 | | "Hybrid mesons , qq ̄ states with an admixture", 22 | | "typical proportionalities of \u223C 1nmV \u2212 1 [ 3,4 ] .", 23 | | "🤟 🤟 🤟 hüllo", 24 | | "🤟hallo 🤟 🤟 🤟 🤟", 25 | | "🤟", 26 | | "\uF8F9", 27 | | ] | |_____^ RUF012 28 | 29 | def create_embedding_from_name(self, name: str): |
test: tests/model_test_utils.py#L341
ruff pytest_ruff.RuffError: tests/model_test_utils.py:19:34: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 17 | train_label_type: str 18 | multiclass_prediction_labels: List[str] 19 | model_args: Dict[str, Any] = {} | ^^ RUF012 20 | training_args: Dict[str, Any] = {} 21 | finetune_instead_of_train: bool = False | tests/model_test_utils.py:20:37: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 18 | multiclass_prediction_labels: List[str] 19 | model_args: Dict[str, Any] = {} 20 | training_args: Dict[str, Any] = {} | ^^ RUF012 21 | finetune_instead_of_train: bool = False |
test: tests/test_datasets.py#L780
test_masakhane_corpus[False] AssertionError: Mismatch in number of sentences for fon@v2/dev assert 621 == 623
test: tests/embeddings/test_byte_pair_embeddings.py#L341
ruff pytest_ruff.RuffError: tests/embeddings/test_byte_pair_embeddings.py:9:20: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 7 | is_token_embedding = True 8 | is_document_embedding = False 9 | default_args = {"language": "en"} | ^^^^^^^^^^^^^^^^^^ RUF012 |