HFST - Helsinki Finite-State Transducer Technology - Python API  version 3.9.0
NotValidAttFormatException Class Reference

The stream is not in valid AT&T format. More...

Inheritance diagram for NotValidAttFormatException:
HfstException

Detailed Description

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__


The documentation for this class was generated from the following file: