HFST - Helsinki Finite-State Transducer Technology - Python API  version 3.12.1
 All Classes Namespaces Files Functions Variables Pages
List of all members
NotValidAttFormatException Class Reference

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

Inheritance diagram for NotValidAttFormatException:
HfstException

Additional Inherited Members

- Public Member Functions inherited from HfstException
def what
 A message describing the error in more detail. More...
 

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 = 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__


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