Spaces:
Runtime error
Runtime error
Fixed bug in Word2ContextExplorerConnector class. The words were not converted in lowercase.
Browse files
modules/module_connection.py
CHANGED
@@ -336,6 +336,7 @@ class Word2ContextExplorerConnector(Connector):
|
|
336 |
word: str
|
337 |
) -> Tuple:
|
338 |
|
|
|
339 |
err = ""
|
340 |
contexts = pd.DataFrame([], columns=[''])
|
341 |
subsets_info = ""
|
@@ -347,8 +348,6 @@ class Word2ContextExplorerConnector(Connector):
|
|
347 |
if err:
|
348 |
return err, contexts, subsets_info, distribution_plot, word_cloud_plot, subsets_choice
|
349 |
|
350 |
-
word = self.parse_word(word)
|
351 |
-
|
352 |
subsets_info, subsets_origin_info = self.word2context_explorer.getSubsetsInfo(word)
|
353 |
|
354 |
clean_keys = [key.split(" ")[0].strip() for key in subsets_origin_info]
|
|
|
336 |
word: str
|
337 |
) -> Tuple:
|
338 |
|
339 |
+
word = self.parse_word(word)
|
340 |
err = ""
|
341 |
contexts = pd.DataFrame([], columns=[''])
|
342 |
subsets_info = ""
|
|
|
348 |
if err:
|
349 |
return err, contexts, subsets_info, distribution_plot, word_cloud_plot, subsets_choice
|
350 |
|
|
|
|
|
351 |
subsets_info, subsets_origin_info = self.word2context_explorer.getSubsetsInfo(word)
|
352 |
|
353 |
clean_keys = [key.split(" ")[0].strip() for key in subsets_origin_info]
|