HFST - Helsinki Finite-State Transducer Technology - Python API
version 3.9.0
|
The stream is not in valid AT&T format. More...
The stream is not in valid AT&T format.
An example:
f = open('testfile1.att', 'w') f.write('0 1 a b\n\ 1 2 c\n\ 2\n') f.close() f = libhfst.hfst_open('testfile1.att', 'r') try: tr = libhfst.read_att(f) except libhfst.NotValidAttFormatException: print('Could not read file: it is not in valid ATT format.') f.close()
thrown by libhfst.HfstTransducer.__init__