Component of CS-552 Spring 2026 multi-agent legal QA pipeline (Clanker-Scientists team). Translates French legal evidence (from the FR jurisdiction agent) into English for the Coordinator.
Helsinki-NLP/opus-mt-fr-en| Test set | Metric | Base | FT | Δ |
|---|---|---|---|---|
| JRC-Acquis fr-en, 100-400 char, N=200 | corpus BLEU | 57.69 | 58.67 | +0.98 |
Across three filter-stringency iterations:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tok = AutoTokenizer.from_pretrained("cs-552-2026-Clanker-Scientists/adaptor-marianmt-fr-en-legal-v3")
model = AutoModelForSeq2SeqLM.from_pretrained("cs-552-2026-Clanker-Scientists/adaptor-marianmt-fr-en-legal-v3")
fr = "Le contrat est résilié de plein droit en cas de force majeure."
ids = tok(fr, return_tensors="pt").input_ids
out = model.generate(ids, num_beams=6, max_length=192)
print(tok.decode(out[0], skip_special_tokens=True))
Helsinki-NLP/opus-mt-fr-en