LMartinezEXEX commited on
Commit
e696c96
·
1 Parent(s): 7d8f0c2

Minimal code refractor of connector classes

Browse files
Files changed (1) hide show
  1. modules/module_connection.py +2 -2
modules/module_connection.py CHANGED
@@ -45,7 +45,7 @@ class WordExplorerConnector(Connector):
45
  ) -> None:
46
 
47
  embedding = kwargs.get('embedding', None)
48
- if 'embedding' is None:
49
  raise KeyError
50
 
51
  self.word_explorer = WordExplorer(
@@ -115,7 +115,7 @@ class BiasWordExplorerConnector(Connector):
115
  ) -> None:
116
 
117
  embedding = kwargs.get('embedding', None)
118
- if 'embedding' is None:
119
  raise KeyError
120
 
121
  self.bias_word_explorer_2_spaces = WEBiasExplorer2Spaces(
 
45
  ) -> None:
46
 
47
  embedding = kwargs.get('embedding', None)
48
+ if embedding is None:
49
  raise KeyError
50
 
51
  self.word_explorer = WordExplorer(
 
115
  ) -> None:
116
 
117
  embedding = kwargs.get('embedding', None)
118
+ if embedding is None:
119
  raise KeyError
120
 
121
  self.bias_word_explorer_2_spaces = WEBiasExplorer2Spaces(