HFST - Helsinki Finite-State Transducer Technology - Python API
version 3.12.1
|
The stream is not in valid AT&T format. More...
Additional Inherited Members | |
Public Member Functions inherited from HfstException | |
def | what |
A message describing the error in more detail. 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 = hfst.hfst_open('testfile1.att', 'r') try: tr = hfst.read_att(f) except hfst.exceptions.NotValidAttFormatException: print('Could not read file: it is not in valid ATT format.') f.close()
thrown by hfst.HfstTransducer.__init__