Skip to content

Commit 1173b58

Browse files
authored
Merge pull request #82 from davissorenson/fix-generator-init
Python API: Fix loading HFST file for Generator in Omorfi class
2 parents 71fe9c7 + 19cd2bc commit 1173b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/python/omorfi/omorfi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def load_generator(self, f):
154154
Args:
155155
f: containing single hfst automaton binary.
156156
"""
157-
self.generator = Generator(f)
157+
self.generator.load_generator(f)
158158
self.can_generate = True
159159

160160
def load_acceptor(self, f):

0 commit comments

Comments
 (0)