public class BasenameClassificationDefinitionFileReader extends Object
Definition file format:
GLOB = classwhere GLOB is a glob expression and class is a classification string. Within the glob, the following characters have special meaning:
foo_* = barin the classification definition file will cause all basenames starting with foo_ to be handled as belonging to the "bar" class. One scenario where this is useful is the classification of prompts by speaking style in a multi-style voice database.
Modifier and Type | Field and Description |
---|---|
boolean |
fileOK |
protected BufferedReader |
reader |
protected LinkedHashMap<org.apache.oro.text.regex.Pattern,String> |
styleDefinitions |
Constructor and Description |
---|
BasenameClassificationDefinitionFileReader(Reader reader)
main constructor
|
BasenameClassificationDefinitionFileReader(String filename)
constructor to call main constructor with a filename String
|
protected BufferedReader reader
public boolean fileOK
protected LinkedHashMap<org.apache.oro.text.regex.Pattern,String> styleDefinitions
public BasenameClassificationDefinitionFileReader(String filename) throws IOException
filename
- as a StringIOException
- IOExceptionpublic BasenameClassificationDefinitionFileReader(Reader reader) throws IOException
reader
- as a ReaderIOException
- IOExceptionCopyright © 2000–2016 DFKI GmbH. All rights reserved.