Automatic Machine Translation Evaluation in Many Languages via Zero-Shot Paraphrasing
https://github.com/thompsonb/prism
- Prism
- Description: A machine translation metric based on paraphrasing
- Name:
thompson2020-prism
- Usage:
from repro.models.thompson2020 import Prism model = Prism() inputs = [ {"candidate": "The candidate", "references": ["The reference"]} ] macro, micro = model.predict(inputs) inputs = [ {"candidate": "The candidate", "sources": ["The source"]} ] macro, micro = model.predict(inputs)
macro
is the average Prism score across inputs, andmicro
is the score per input.
- The metric requires all inputs to have sources xor references, not both or neither.
- The metric only supports single references and/or sources, so the length of
references
andsources
must be 1.
- Image name:
danieldeutsch/thompson2020:1.0
- Build command:
repro setup thompson2020 [--silent]
- Requires network: No
repro setup thompson2020
pytest models/thompson2020/tests
- Regression unit tests pass
- Correctness unit tests pass
See here. We replicate the output provided in their Github repository. - Model runs on full test dataset
Not tested - Predictions approximately replicate results reported in the paper
Not tested - Predictions exactly replicate results reported in the paper
Not tested