From 46568cfa5bf401eabc8724dfd5e26d484c36b4d0 Mon Sep 17 00:00:00 2001 From: chasets Date: Sat, 27 Jan 2018 17:28:47 -0500 Subject: [PATCH] OWPreprocess: Add choice in FilteringModule: All Files (*) The FileWidget used in the FilteringModule class of owpreprocess only allows opening files with a .txt extension. The stopwords files included with the nltk_data do not have this extension. This change adds a selector for "All Files (*)" in addition to "Only text files (*.txt)" in the FileWidget. --- orangecontrib/text/widgets/owpreprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orangecontrib/text/widgets/owpreprocess.py b/orangecontrib/text/widgets/owpreprocess.py index a01985343..37d27166b 100644 --- a/orangecontrib/text/widgets/owpreprocess.py +++ b/orangecontrib/text/widgets/owpreprocess.py @@ -312,7 +312,7 @@ class FilteringModule(MultipleMethodModule): REGEXP = 2 FREQUENCY = 3 KEEP_N = 4 - dlgFormats = 'Only text files (*.txt)' + dlgFormats = 'Only text files (*.txt);;All files (*)' stopwords_language = settings.Setting('English')