aac_metrics.classes.meteor module¶
- class METEOR(
- return_all_scores: bool =
True, - *,
- cache_path: str | Path | None =
None, - java_path: str | Path | None =
None, - java_max_memory: str =
'2G', - language: 'en' | 'cz' | 'de' | 'es' | 'fr' =
'en', - use_shell: bool | None =
None, - params: Iterable[float] | None =
None, - weights: Iterable[float] | None =
None, - verbose: int =
0, Bases:
AACMetric[tuple[METEORScores,METEORScores] |Tensor]Metric for Evaluation of Translation with Explicit ORdering metric class.
Documentation: https://www.cs.cmu.edu/~alavie/METEOR/README.html
For more information, see
meteor().- compute() tuple[METEORScores, METEORScores] | Tensor[source]¶
- extra_repr() str[source]¶
Return the extra representation of the module.
To print customized extra information, you should re-implement this method in your own modules. Both single-line and multi-line strings are acceptable.
- update(
- candidates: list[str],
- mult_references: list[list[str]],