|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JoinCostFunction
A join cost function for evaluating the goodness-of-fit of a given pair of left and right unit.
| Method Summary | |
|---|---|
double |
cost(Target t1,
Unit u1,
Target t2,
Unit u2)
Compute the goodness-of-fit of joining two units, given the corresponding targets |
void |
init(java.lang.String configPrefix)
Initialise this join cost function by reading the appropriate settings from the MaryProperties using the given configPrefix. |
void |
load(java.lang.String joinFileName,
java.lang.String weightsFileName,
java.lang.String precompiledCostFileName,
float wSignal)
Deprecated. |
| Method Detail |
|---|
double cost(Target t1,
Unit u1,
Target t2,
Unit u2)
t1 - the left targetu1 - the proposed left unitt2 - the right targetu3 - the proposed right unit
void init(java.lang.String configPrefix)
throws java.io.IOException
configPrefix - the prefix for the (voice-specific) config entries
to use when looking up files to load.
java.io.IOException
@Deprecated
void load(java.lang.String joinFileName,
java.lang.String weightsFileName,
java.lang.String precompiledCostFileName,
float wSignal)
throws java.io.IOException
joinFileName - the file from which to read default weights and join cost featuresweightsFileName - an optional file from which to read weights, taking precedence overprecompiledCostFileName - an optional file containing precompiled join costswSignal - Relative weight of the signal-based join costs relative to the
phonetic join costs computed from the target
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||