You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hfst-optimized-lookup-python package fails with below error, when it does not find symbol number:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hfst_lookup-1.0-py2.7.egg/hfst_lookup//hfst_lookup.py", line 57, in
if word.isalpha() and transducer.analyze(word):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hfst_lookup-1.0-py2.7.egg/hfst_lookup/transducer.py", line 162, in analyze
self.inputString.s.append(self.letterTrie.findKey(inputline))
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hfst_lookup-1.0-py2.7.egg/hfst_lookup/shared.py", line 120, in findKey
return self.root.find(indexstring)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hfst_lookup-1.0-py2.7.egg/hfst_lookup/shared.py", line 107, in find
if not (current in symbols):
NameError: global name 'symbols' is not defined
This issue has a simple fix.
Replace 'symbols' with 'self.symbols'
The text was updated successfully, but these errors were encountered:
hfst-optimized-lookup-python package fails with below error, when it does not find symbol number:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hfst_lookup-1.0-py2.7.egg/hfst_lookup//hfst_lookup.py", line 57, in
if word.isalpha() and transducer.analyze(word):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hfst_lookup-1.0-py2.7.egg/hfst_lookup/transducer.py", line 162, in analyze
self.inputString.s.append(self.letterTrie.findKey(inputline))
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hfst_lookup-1.0-py2.7.egg/hfst_lookup/shared.py", line 120, in findKey
return self.root.find(indexstring)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hfst_lookup-1.0-py2.7.egg/hfst_lookup/shared.py", line 107, in find
if not (current in symbols):
NameError: global name 'symbols' is not defined
This issue has a simple fix.
Replace 'symbols' with 'self.symbols'
The text was updated successfully, but these errors were encountered: