Spaces:
Runtime error
Runtime error
Commit ·
3f135be
1
Parent(s): ee3cb6b
Fixed logical bug in Connector's child class initialization method
Browse files
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
|
| 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(
|