Add NLLB 600M translation-scoring web prototype with interactive span highlighting#1074
Draft
Copilot wants to merge 5 commits into
Draft
Add NLLB 600M translation-scoring web prototype with interactive span highlighting#1074Copilot wants to merge 5 commits into
Copilot wants to merge 5 commits into
Conversation
…corer.py, NMTModel.score_translation() Agent-Logs-Url: https://github.com/sillsdev/silnlp/sessions/c9d942dc-1d4a-4f20-b396-c522dcb080bc Co-authored-by: benjaminking <1214233+benjaminking@users.noreply.github.com>
…ripping Agent-Logs-Url: https://github.com/sillsdev/silnlp/sessions/c9d942dc-1d4a-4f20-b396-c522dcb080bc Co-authored-by: benjaminking <1214233+benjaminking@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add evaluation functionality for encoder-decoder models
Add translation scoring: forced-decoding token probabilities with low-probability word detection and suggestions
May 20, 2026
Copilot
AI
changed the title
Add translation scoring: forced-decoding token probabilities with low-probability word detection and suggestions
Add contextual phrase scoring and rescored replacement suggestions for NMT translations
May 27, 2026
Copilot
AI
changed the title
Add contextual phrase scoring and rescored replacement suggestions for NMT translations
Add NLLB 600M translation-scoring web prototype with interactive span highlighting
May 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a prototype browser app for interactive translation scoring: users enter source/target text side-by-side, choose language codes from the NLLB-200 set, and get low-probability spans highlighted with click-to-view replacement suggestions. Scoring is re-run on each text/language change using the NLLB 600M model on the server.
Server: scoring API + NLLB 600M integration
silnlp/nmt/translation_scorer_webapp.pywith a lightweight HTTP server.facebook/nllb-200-distilled-600Mviatransformers(AutoTokenizer+AutoModelForSeq2SeqLM).GET /for the prototype UIGET /api/languagesfor supported language codesPOST /api/scorereturning flagged spans and ranked suggestionssrc_lang,tgt_lang,forced_bos_token_id) per request.UI: side-by-side editing + reactive scoring
Flag shaping for display
CLI entry point
silnlp-nmt-score-webappinpyproject.tomlfor direct launch of the prototype server.Original prompt
Created from VS Code.
This change is