Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@juhoinkinen
Copy link
Member

@juhoinkinen juhoinkinen commented Oct 30, 2024

This changes the first menu from "Vocabulary and text language" (Annif project) to "Vocabulary" and adds a menu "Text language" (the Annif project is selected as a combination of the selected vocabulary and language). Thus, the text language can be selected independently of the vocabulary; when a vocabulary is selected, that does not have Annif projects for some languages, those language items are disabled in the languages menu.

Also adds automatic language detection, which updates the selection in the language menu. The language detection is run when

  • a file or url is inputted
  • a user alters text in the textarea and there is >= 10 characters in the text; there is a delay of 1 second

This PR branch is based on the branch of PR #18, so it's better to merge that to main before this. Closes #9.

@juhoinkinen juhoinkinen marked this pull request as ready for review January 13, 2025 07:23
@juhoinkinen juhoinkinen changed the title Detect language of text Separate vocabulary and language menus and detect language of text Jan 13, 2025
@osma osma self-requested a review February 3, 2025 08:28
@juhoinkinen juhoinkinen changed the base branch from update-2024 to main February 6, 2025 13:49
Copy link
Member

@osma osma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good in general, I left a few comments and suggestions.

@juhoinkinen
Copy link
Member Author

All requested changes have been addressed, I merge this.

@juhoinkinen juhoinkinen merged commit aa05c02 into main Mar 17, 2025
@juhoinkinen juhoinkinen deleted the issue9-detect-language-of-text branch March 21, 2025 12:51
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

Successfully merging this pull request may close these issues.

Detect language of text

3 participants