gwlans-eval
GWLAN: General Word-Level AutocompletioN for Computer-Aided Translation — Huayang Li et al. (2021) (arXiv:2105.14913, 2021)
What this evaluates
Predicts target words in computer-aided translation based on source sentences, translation context (prefix, suffix, zero, bidirectional), and human-typed characters. It probes the model's ability to handle discontinuous context and weak positional information in real-world CAT scenarios.
Datasets
- GWLAN Benchmark — total ?; splits: train (1250000), val (-1), test (-1)
Metrics
accuracy (primary) — range: percent
- Exact match accuracy: the percentage of instances where the predicted target word exactly matches the gold target word. Scores are averaged across four translation context types (prefix, suffix, zero-context, and bidirectional context).
Input / output format
Input: Source sentence, translation context type (prefix, suffix, zero, or bidirectional), and human-typed character sequence.
Output: A single predicted target word.
Scoring recipe
def compute_accuracy(predictions, golds):
correct = sum(1 for p, g in zip(predictions, golds) if p == g)
return (correct / len(golds)) * 100
# Final reported score is the average of accuracy computed separately for each of the four context types.
Common pitfalls
- The evaluation averages accuracy across four distinct context types (prefix, suffix, zero, bidirectional); reporting only one context's score misrepresents overall performance.
- Trivial instances (e.g., predicting 'the' given 'th') are filtered out using length rules (>4 chars English, >2 chars Chinese) and context length constraints; ignoring these rules inflates scores on easy cases.
Evidence (verbatim from paper)
Table 1: The main results of different systems on Chinese-English and German-English datasets. The results in this table are the averaged accuracy on four translation contexts (i.e., prefix, suffix, zero-context, and bi-context).
Citation
@misc{li2021gwlans,
title={GWLAN: General Word-Level AutocompletioN for Computer-Aided Translation},
author={Huayang Li et al. (2021)},
year={2021},
note={arXiv:2105.14913}
}
1---2name: gwlans-eval3description: Predicts target words in computer-aided translation based on source sentences, translation context (prefix, suffix, zero, bidirectional), and human-typed characters. It probes the model's ability to handle discontinuous context and weak positional information in real-world CAT scenarios. Use when the user wants to benchmark on GWLAN Benchmark, or asks about evaluating this task. Reports accuracy.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/gwlans-eval6 skill_kind: dataset_eval7 source_arxiv: 2105.149138 bibtex_key: li2021gwlans9 confidence: high10---1112# gwlans-eval1314> GWLAN: General Word-Level AutocompletioN for Computer-Aided Translation — Huayang Li et al. (2021) (arXiv:2105.14913, 2021)1516## What this evaluates1718Predicts target words in computer-aided translation based on source sentences, translation context (prefix, suffix, zero, bidirectional), and human-typed characters. It probes the model's ability to handle discontinuous context and weak positional information in real-world CAT scenarios.1920## Datasets2122- **GWLAN Benchmark** — total ?; splits: train (1250000), val (-1), test (-1)2324## Metrics2526- `accuracy` **(primary)** — range: percent27 - Exact match accuracy: the percentage of instances where the predicted target word exactly matches the gold target word. Scores are averaged across four translation context types (prefix, suffix, zero-context, and bidirectional context).2829## Input / output format3031**Input**: Source sentence, translation context type (prefix, suffix, zero, or bidirectional), and human-typed character sequence.3233**Output**: A single predicted target word.3435## Scoring recipe3637```python38def compute_accuracy(predictions, golds):39 correct = sum(1 for p, g in zip(predictions, golds) if p == g)40 return (correct / len(golds)) * 10041# Final reported score is the average of accuracy computed separately for each of the four context types.42```4344## Common pitfalls4546- The evaluation averages accuracy across four distinct context types (prefix, suffix, zero, bidirectional); reporting only one context's score misrepresents overall performance.47- Trivial instances (e.g., predicting 'the' given 'th') are filtered out using length rules (>4 chars English, >2 chars Chinese) and context length constraints; ignoring these rules inflates scores on easy cases.4849## Evidence (verbatim from paper)5051> Table 1: The main results of different systems on Chinese-English and German-English datasets. The results in this table are the averaged accuracy on four translation contexts (i.e., prefix, suffix, zero-context, and bi-context).5253## Citation5455```bibtex56@misc{li2021gwlans,57 title={GWLAN: General Word-Level AutocompletioN for Computer-Aided Translation},58 author={Huayang Li et al. (2021)},59 year={2021},60 note={arXiv:2105.14913}61}62```6364- arXiv: 2105.14913