public class FST extends Object
Constructor and Description |
---|
FST(InputStream inStream)
Load the fst from the given input stream.
|
FST(InputStream inStream,
String encoding)
Load the fst from the given input stream.
|
FST(String fileName) |
FST(String fileName,
boolean verbose)
Initialise the finite state transducer.
|
FST(String fileName,
String encoding)
Initialise the finite state transducer.
|
FST(String fileName,
String encoding,
boolean verbose)
Initialise the finite state transducer.
|
public FST(String fileName) throws IOException
IOException
public FST(InputStream inStream) throws IOException
inStream
- in streamIOException
- IOExceptionpublic FST(String fileName, String encoding) throws IOException, UnsupportedEncodingException
fileName
- the name of the file from which to load the FST.encoding
- the name of the encoding used in the file (e.g., UTF-8 or ISO-8859-1).IOException
- if the FST cannot be loaded from the given file.UnsupportedEncodingException
- if the encoding is not supported.public FST(String fileName, boolean verbose) throws IOException
fileName
- the name of the file from which to load the FST.verbose
- whether to write a report to stderr after loading.IOException
- if the FST cannot be loaded from the given file.public FST(String fileName, String encoding, boolean verbose) throws IOException, UnsupportedEncodingException
fileName
- the name of the file from which to load the FST.encoding
- the name of the encoding used in the file (e.g., UTF-8 or ISO-8859-1).
This constructor is to be used for old FST-files where the encoding was not yet specified in the header.verbose
- whether to write a report to stderr after loading.IOException
- if the FST cannot be loaded from the given file.UnsupportedEncodingException
- if the encoding is not supported.public FST(InputStream inStream, String encoding) throws IOException, UnsupportedEncodingException
inStream
- inStreamencoding
- encodingIOException
- IOExceptionUnsupportedEncodingException
- UnsupportedEncodingExceptionCopyright © 2000–2016 DFKI GmbH. All rights reserved.