-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
RAKE_LANGUAGES empty list in Extract Keywords #1099
Comments
Same behavior with Orange3 version 3.37.0 and Text 1.16.1 in Windows 10 Workaround in .../orange3/lib/python3.10/site-packages/orangecontrib/text/widgets add line 263: or better add all lines:
But this is just a hack to get out of the way, also add the language code you are going to work with if it is supported. |
I see that in Preprocess Text there are no dictionaries in Filtering - Stopwords either.
I download the dictionaries:
But it still doesn't detect them even after completely exiting and re-entering the python environment. |
I have seen that in Preprocess Text the list of languages in Filtering, in Stopwords, did not appear either. Checking, I see that an error occurs in filter.py
The empty set returns there. |
The error in Filtering is caused by the language Albanian because it will not exist in LANG2ISO. but the error in Extract Keywords continue... |
SOLVED:
orangecontrib/text/widgets/ownkeywords.py
line 263
|
|
I have added changes so that when a new language appears in NLTK it will notify you in the terminal but load the languages present in ISO2LANG:
|
Describe the bug
Insert Extract Keywords widget and an error window appears
To Reproduce
Insert Extract Keywords
Expected behavior
View the widget without error
Orange version:
3.38.1
Text add-on version:
1.16.2
Screenshots
<style type="text/css"> p, li { white-space: pre-wrap; } hr { height: 1px; border-width: 0; } li.unchecked::marker { content: "\2610"; } li.checked::marker { content: "\2612"; } </style>Local Variables:
OrderedDict([('self',
<orangewidget.gui.CallFrontComboBoxModel object at 0x7966ae2c8400>),
('value', 'en')])
Operating system:
LinuxMint 22
Additional context
If before error I use print("RAKE_LANGUAGES contenido:", RAKE_LANGUAGES)
the output is: RAKE_LANGUAGES contenido: set()
The text was updated successfully, but these errors were encountered: