![]() |
omorfi 0.9.9
Open morphology of Finnish
|
Public Member Functions | |
| TransducerHeader (FileInputStream file) throws java.io.IOException, FormatException | |
| Boolean | begins_hfst3_header (ByteArray bytes) |
| void | read_hfst3_header (FileInputStream file) throws java.io.IOException, FormatException |
| int | getInputSymbolCount () |
| int | getSymbolCount () |
| int | getIndexTableSize () |
| int | getTargetTableSize () |
| Boolean | isWeighted () |
| Boolean | hasHfst3Header () |
| Boolean | isIntact () |
On instantiation reads the transducer's header and provides an interface to it.
| net.sf.hfst.TransducerHeader.TransducerHeader | ( | FileInputStream | file | ) | throws java.io.IOException, FormatException |
Read in the (56 bytes of) header information, which unfortunately is mostly in little-endian unsigned form.
| file | file stream pointing to a header |
| Boolean net.sf.hfst.TransducerHeader.begins_hfst3_header | ( | ByteArray | bytes | ) |
whether bytes start with HFST 3 header
| bytes | bytes to check |
| int net.sf.hfst.TransducerHeader.getIndexTableSize | ( | ) |
Get index table size
| int net.sf.hfst.TransducerHeader.getInputSymbolCount | ( | ) |
Get input symbol count
| int net.sf.hfst.TransducerHeader.getSymbolCount | ( | ) |
Get symbol count
| int net.sf.hfst.TransducerHeader.getTargetTableSize | ( | ) |
Get target table size
| Boolean net.sf.hfst.TransducerHeader.hasHfst3Header | ( | ) |
Whether it's hfst 3 header.
| Boolean net.sf.hfst.TransducerHeader.isIntact | ( | ) |
Whether it's intact.
| Boolean net.sf.hfst.TransducerHeader.isWeighted | ( | ) |
Whether it's weighted.
| void net.sf.hfst.TransducerHeader.read_hfst3_header | ( | FileInputStream | file | ) | throws java.io.IOException, FormatException |
read HFST 3 header.
| file | file that contains a header |