|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarytts.htsengine.PhoneTranslator
public class PhoneTranslator
Translates phone names used in HTS-HTK
| Constructor Summary | |
|---|---|
PhoneTranslator(java.lang.String trickyPhonesFile)
|
|
| Method Summary | |
|---|---|
java.lang.String |
features2context(FeatureDefinition def,
FeatureVector featureVector,
java.util.Vector<java.lang.String> featureList)
Convert the feature vector into a context model name to be used by HTS/HTK. |
java.lang.String |
features2LongContext(FeatureDefinition def,
FeatureVector featureVector,
java.util.Vector<java.lang.String> featureList)
Convert the feature vector into a context model name to be used by HTS/HTK. |
static void |
main(java.lang.String[] args)
|
java.lang.String |
replaceBackPunc(java.lang.String lab)
|
java.lang.String |
replaceBackToBI(java.lang.String lab)
|
java.lang.String |
replaceBackTrickyPhones(java.lang.String lab)
Translation table for labels which are incompatible with HTK or shell filenames See common_routines.pl in HTS training. |
java.lang.String |
replacePunc(java.lang.String lab)
|
java.lang.String |
replaceToBI(java.lang.String lab)
|
java.lang.String |
replaceTrickyPhones(java.lang.String lab)
Translation table for labels which are incompatible with HTK or shell filenames See common_routines.pl in HTS training. |
void |
setContextFeatureFile(java.lang.String str)
|
java.lang.String |
shortenPfeat(java.lang.String fea)
Shorten the key name (to make the full context names shorter) See common_routines.pl in HTS training. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PhoneTranslator(java.lang.String trickyPhonesFile)
throws java.io.FileNotFoundException
java.io.FileNotFoundException| Method Detail |
|---|
public void setContextFeatureFile(java.lang.String str)
public java.lang.String features2context(FeatureDefinition def,
FeatureVector featureVector,
java.util.Vector<java.lang.String> featureList)
def - a feature definitionfeatureVector - a feature vector which must be consistent with the Feature definitionfeatureList - a list of features to use in constructing the context model name. If missing, all features in the feature definition are used.
public java.lang.String features2LongContext(FeatureDefinition def,
FeatureVector featureVector,
java.util.Vector<java.lang.String> featureList)
def - a feature definitionfeatureVector - a feature vector which must be consistent with the Feature definitionfeatureList - a list of features to use in constructing the context model name. If missing, all features in the feature definition are used.
public java.lang.String replaceTrickyPhones(java.lang.String lab)
lab -
public java.lang.String replaceBackTrickyPhones(java.lang.String lab)
lab -
public java.lang.String shortenPfeat(java.lang.String fea)
public java.lang.String replacePunc(java.lang.String lab)
public java.lang.String replaceBackPunc(java.lang.String lab)
public java.lang.String replaceToBI(java.lang.String lab)
public java.lang.String replaceBackToBI(java.lang.String lab)
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||