LMartinezEXEX commited on
Commit
3f135be
·
1 Parent(s): ee3cb6b

Fixed logical bug in Connector's child class initialization method

Browse files
Files changed (1) hide show
  1. modules/module_connection.py +1 -1
modules/module_connection.py CHANGED
@@ -45,7 +45,7 @@ class Word2ContextExplorerConnector(Connector):
45
  vocabulary = kwargs.get('vocabulary', None)
46
  context = kwargs.get('context', None)
47
 
48
- if vocabulary is None and context is None:
49
  raise KeyError
50
 
51
  self.word2context_explorer = Word2Context(
 
45
  vocabulary = kwargs.get('vocabulary', None)
46
  context = kwargs.get('context', None)
47
 
48
+ if vocabulary is None or context is None:
49
  raise KeyError
50
 
51
  self.word2context_explorer = Word2Context(