You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Missing a language in ISO2LANG causes the Preprocess Text widget to not display the language list in Filtering - Stopwords.
To Reproduce
Steps to reproduce the behavior:
Insert widget Preprocess Text
Add, if not already, Filtering to the right side.
View the list of languages for Stopwords.
The list is empty.
Expected behavior
The list of all nltk languages should appear
NOTE: It is true that the nltk languages must be downloaded, you must check that this is the case in a clean installation of Orange because I think they are not. If they are not, you must open python in the orange environment ($ python) and use two commands:
import nltk
nltk.download('stopwords')
Orange version:
3.37.0, 3.38.1
Text add-on version:
1.16.1 and 1.16.2
Screenshots
If applicable, add screenshots to help explain your problem.
Operating system:
Windows 10 and Linux Mint 22
Additional context
I have added the language so that the error disappears. It would be best if the code did not fail when adding new languages in nltk, it should simply load those that appear in the ISO2LANG variable.
The text was updated successfully, but these errors were encountered:
Solved: I have added the language so that the error disappears. It would be best if the code did not fail when adding new languages in nltk, it should simply load those that appear in the ISO2LANG variable.
.../orange3/lib/python3.10/site-packages/orangecontrib/text/language.py
line 90
+ "sq": "Albanian",
Describe the bug
Missing a language in ISO2LANG causes the Preprocess Text widget to not display the language list in Filtering - Stopwords.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The list of all nltk languages should appear
NOTE: It is true that the nltk languages must be downloaded, you must check that this is the case in a clean installation of Orange because I think they are not. If they are not, you must open python in the orange environment ($ python) and use two commands:
Orange version:
3.37.0, 3.38.1
Text add-on version:
1.16.1 and 1.16.2
Screenshots
If applicable, add screenshots to help explain your problem.
Operating system:
Windows 10 and Linux Mint 22
Additional context
I have added the language so that the error disappears. It would be best if the code did not fail when adding new languages in nltk, it should simply load those that appear in the ISO2LANG variable.
The text was updated successfully, but these errors were encountered: