Aac-metrics

Latest version: v0.5.4

Safety actively analyzes 682334 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.4.5

Added
- Argument `use_shell` for `METEOR` and `SPICE` metrics and `download` function to fix Windows-OS specific error.

Changed
- Rename `evaluate.py` script to `eval.py`.

Fixed
- Workflow on main branch.
- Examples in README and doc with at least 2 sentences, and add a warning on all metrics that requires at least 2 candidates.

0.4.4

Added
- `Evaluate` class now implements a `__hash__` and `tolist()` methods.
- `BLEU` 1 to n classes and functions.
- Get and set global user paths for cache, java and tmp.

Changed
- Function `get_install_info` now returns `package_path`.
- `AACMetric` now indicate the output type when using `__call__` method.
- Rename `AACEvaluate` to `DCASE2023Evaluate` and use `dcase2023` metric set instead of `all` metric set.

Fixed
- `sbert_sim` name in internal instantiation functions.
- Path management for Windows.

0.4.3

Changed
- `AACMetric` is no longer a subclass of `torchmetrics.Metric` even when it is installed. It avoid dependency to this package and remove potential errors due to Metric base class.
- Java 12 and 13 are now allowed in this package.

Fixed
- Output name `sbert_sim` in FENSE and SBERTSim classes.
- `Evaluate` class instantiation with `torchmetrics` >= 0.11.
- `evaluate.py` script when using a verbose mode != 0.

0.4.2

Fixed
- File `install_spice.sh` is now in `src/aac_metrics` directory to fix download from a pip installation. ([3](https://github.com/Labbeti/aac-metrics/issues/3))
- Java version retriever to avoid exception when java version is correct. ([2](https://github.com/Labbeti/aac-metrics/issues/2))

0.4.1

Deleted
- Old unused files `package_tree.rst`, `fluency_error.py`, `sbert.py` and `spider_err.py`.

0.4.0

Added
- Argument `return_probs` for fluency error metric.

Changed
- Rename `SPIDErErr` to `SPIDErFL` to match DCASE2023 metric name.
- Rename `SBERT` to `SBERTSim` to avoid confusion with SBERT model name.
- Rename `FluencyError` to `FluErr`.
- Check if Java executable version between 8 and 11. ([1](https://github.com/Labbeti/aac-metrics/issues/1))

Fixed
- `SPIDErFL` sentences scores outputs when using `return_all_scores=True`.
- Argument `reset_state` in `SPIDErFL`, `SBERTSim`, `FluErr` and `FENSE` when using their functional interface.
- Classes and functions factories now support SPICE and CIDEr-D metrics.
- `SBERTSim` class instantiation.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.