bugfix
Browse files- predict.py +1 -1
predict.py
CHANGED
@@ -46,7 +46,7 @@ class Predictor:
|
|
46 |
)
|
47 |
|
48 |
self.model = DiacritizerD2(config)
|
49 |
-
self.model.
|
50 |
state_dict = T.load(config["paths"]["load"], map_location=T.device(self.device))['state_dict']
|
51 |
self.model.load_state_dict(state_dict)
|
52 |
self.model.to(self.device)
|
|
|
46 |
)
|
47 |
|
48 |
self.model = DiacritizerD2(config)
|
49 |
+
self.model.build(word_embeddings, vocab_size)
|
50 |
state_dict = T.load(config["paths"]["load"], map_location=T.device(self.device))['state_dict']
|
51 |
self.model.load_state_dict(state_dict)
|
52 |
self.model.to(self.device)
|