Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect language of text #9

Open
osma opened this issue Dec 20, 2022 · 3 comments
Open

Detect language of text #9

osma opened this issue Dec 20, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@osma
Copy link
Member

osma commented Dec 20, 2022

A possible enhancement for the Finto AI user interface would be to detect the language of input text. This would be easy to implement if the corresponding functionality is added to the Annif REST API: see NatLibFi/Annif#631

How best to add this feature to the UI needs a bit more thought. I can think of two approaches:

  1. Make this functionality completely separate from the subject indexing. Basically, a button (or other widget) that the user clicks on and then the UI shows the detected language.
  2. Integrate with the subject indexing functionality. For example, first detect the language, then narrow down the available projects based on the language (example: if the text is detected as English, show only projects intended for English language).
@osma osma added the enhancement New feature or request label Dec 20, 2022
@juhoinkinen
Copy link
Member

Annif (code in main branch) has now the language detection method in the API (NatLibFi/Annif#631, NatLibFi/Annif#659), so this feature could be implemented.

@juhoinkinen
Copy link
Member

I started experimenting with this.

In user interface the most natural approach was to modify the first menu to be only for the vocabulary (items would be YSO (<version-name>), YKL, KAUNO and KOKO (in the future)), and to add a menu below for the language of the text (the default selection is automatic detection)

In the text language menu manually selectable should be only the languages supported by the selected projects, others could be absent or preferably grayed out, like English and Swedish for KAUNO).

image

@juhoinkinen
Copy link
Member

Actually, a checkbox for automatic language detection beside the text language menu is better (layout to be refined):

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants