nanom commited on
Commit
8341ea7
1 Parent(s): e6da858

Fixed bug in Word2ContextExplorerConnector class. The words were not converted in lowercase.

Browse files
Files changed (1) hide show
  1. modules/module_connection.py +1 -2
modules/module_connection.py CHANGED
@@ -58,6 +58,7 @@ class Word2ContextExplorerConnector(Connector):
58
  word: str
59
  ) -> Tuple:
60
 
 
61
  err = ""
62
  contexts = pd.DataFrame([], columns=[''])
63
  subsets_info = ""
@@ -69,8 +70,6 @@ class Word2ContextExplorerConnector(Connector):
69
  if err:
70
  return self.process_error(err), contexts, subsets_info, distribution_plot, word_cloud_plot, subsets_choice
71
 
72
- word = self.parse_word(word)
73
-
74
  subsets_info, subsets_origin_info = self.word2context_explorer.getSubsetsInfo(word)
75
 
76
  clean_keys = [key.split(" ")[0].strip() for key in subsets_origin_info]
 
58
  word: str
59
  ) -> Tuple:
60
 
61
+ word = self.parse_word(word)
62
  err = ""
63
  contexts = pd.DataFrame([], columns=[''])
64
  subsets_info = ""
 
70
  if err:
71
  return self.process_error(err), contexts, subsets_info, distribution_plot, word_cloud_plot, subsets_choice
72
 
 
 
73
  subsets_info, subsets_origin_info = self.word2context_explorer.getSubsetsInfo(word)
74
 
75
  clean_keys = [key.split(" ")[0].strip() for key in subsets_origin_info]