Open moocow-the-bovine opened 1 year ago
Dodge TypeErrors from FST.apply() with tokenize=True.
TypeError
FST.apply()
tokenize=True
Reproduce:
import foma next(foma.FST('foo').words(tokenize=True))
Traceback:
File "/home/moocow/.local/lib/python3.10/site-packages/foma/__init__.py", line 329, in _apply foma_apply_set_space_symbol(c_void_p(applyerhandle), c_char_p(toksym)) TypeError: bytes or integer address expected instead of str instance
Dodge
TypeError
s fromFST.apply()
withtokenize=True
.Reproduce:
Traceback: