public interface JoinCostFunction
Modifier and Type | Method and Description |
---|---|
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(String configPrefix)
Initialise this join cost function by reading the appropriate settings from the MaryProperties using the given
configPrefix.
|
void |
load(String joinFileName,
InputStream weightStream,
String precompiledCostFileName,
float wSignal)
Deprecated.
|
double cost(Target t1, Unit u1, Target t2, Unit u2)
t1
- the left targetu1
- the proposed left unitt2
- the right targetu2
- the proposed right unitvoid init(String configPrefix) throws MaryConfigurationException
configPrefix
- the prefix for the (voice-specific) config entries to use when looking up files to load.MaryConfigurationException
- if there is a configuration problem@Deprecated void load(String joinFileName, InputStream weightStream, String precompiledCostFileName, float wSignal) throws IOException, MaryConfigurationException
joinFileName
- the file from which to read default weights and join cost featuresweightStream
- 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 targetIOException
- IOExceptionMaryConfigurationException
- MaryConfigurationExceptionCopyright © 2000–2016 DFKI GmbH. All rights reserved.