Skip to content

add prediction label type for span classifier #2140

add prediction label type for span classifier

add prediction label type for span classifier #2140

Triggered via pull request March 22, 2024 10:36
Status Failure
Total duration 20m 16s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 1 warning
test: flair/embeddings/base.py#L340
ruff pytest_ruff.RuffError: flair/embeddings/base.py:171:17: UP032 [*] Use f-string instead of `format` call | 169 | if len(tensors) != self.mixture_size: 170 | log.error( 171 | "{} tensors were passed, but the module was initialized to mix {} tensors.".format( | _________________^ 172 | | len(tensors), self.mixture_size 173 | | ) | |_________________^ UP032 174 | ) | = help: Convert to f-string
test: flair/models/pairwise_regression_model.py#L340
ruff pytest_ruff.RuffError: flair/models/pairwise_regression_model.py:321:41: UP032 [*] Use f-string instead of `format` call | 319 | if out_path is not None: 320 | for pair, prediction, true_value in zip(batch, results, true_values): 321 | eval_line = "{}\t{}\t{}\t{}\n".format( | _________________________________________^ 322 | | pair.first.to_original_text(), pair.second.to_original_text(), true_value, prediction 323 | | ) | |_____________________________^ UP032 324 | out_file.write(eval_line) | = help: Convert to f-string
test: flair/training_utils.py#L340
ruff pytest_ruff.RuffError: flair/training_utils.py:83:16: UP032 [*] Use f-string instead of `format` call | 82 | def __str__(self) -> str: 83 | line = "mean squared error: {:.4f} - mean absolute error: {:.4f} - pearson: {:.4f} - spearman: {:.4f}".format( | ________________^ 84 | | self.mean_squared_error(), 85 | | self.mean_absolute_error(), 86 | | self.pearsonr(), 87 | | self.spearmanr(), 88 | | ) | |_________^ UP032 89 | return line | = help: Convert to f-string
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/.