Page MenuHomePhabricator

Rename Languages to Models in the OCR tool UI
Open, Needs TriagePublic

Description

The three engines that are available on Wikimedia OCR offer the user an option to select the Language of transcription, if required. However, it is highly likely that the language code (in case of Google and Tesseract engines) or the model ID/name of the model being used (in case of the Transkribus engine) is more relevant than the language itself.

In order to avoid the confusion of referring to language codes (like en, enm, etc.) and model IDs (for e.g. 320462) by the term 'Language' in the UI, it would probably be better to rename the label of the field as "Language code" or "Model" (as applicable), instead.

Details

Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Deprecate available_langs API, and use attributes for Open API detailstoolforge-repos/ocr!17samwilsonapi-attrsmain
Customize query in GitLab

Event Timeline

Restricted Application added a subscriber: • Aklapper. · View Herald Transcript
• PMenon-WMF renamed this task from Rename Languages to Models in the OCR tool UI to Rename Languages to Models/Language Codes in the OCR tool UI.Feb 20 2023, 10:35 AM

For Tesseract there exist language models, script models and models which are neither for a single language nor for a single script.

I'd rename the label as "Model".

I'll pick up and finish Kola's work in https://github.com/wikimedia/wikimedia-ocr/pull/128 (that patch has been for T358433 but mostly is actually about this task).

Change #1079629 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/Wikisource@master] Change 'languages' field to 'models'

https://gerrit.wikimedia.org/r/1079629

• Samwilson renamed this task from Rename Languages to Models/Language Codes in the OCR tool UI to Rename Languages to Models in the OCR tool UI.Jan 26 2025, 3:55 AM
• Samwilson updated the task description. (Show Details)

samwilson opened https://gitlab.wikimedia.org/toolforge-repos/ocr/-/merge_requests/17

Deprecate available_langs API, and use attributes for Open API details

samwilson merged https://gitlab.wikimedia.org/toolforge-repos/ocr/-/merge_requests/17

Deprecate available_langs API, and use attributes for Open API details