public class UnitDatabase extends Object
Modifier and Type | Field and Description |
---|---|
protected TimelineReader |
audioTimeline |
protected int |
backtrace |
protected TimelineReader |
basenameTimeline |
protected JoinCostFunction |
joinCostFunction |
protected org.apache.log4j.Logger |
logger |
protected int |
numUnits |
protected CART |
preselectionCART |
protected StatisticalCostFunction |
sCostFunction |
protected TargetCostFunction |
targetCostFunction |
protected UnitFileReader |
unitReader |
Constructor and Description |
---|
UnitDatabase() |
Modifier and Type | Method and Description |
---|---|
TimelineReader |
getAudioTimeline() |
List<ViterbiCandidate> |
getCandidates(Target target)
Preselect a set of candidates that could be used to realise the given target.
|
String |
getFilename(Unit unit)
For debugging, return the basename of the original audio file from which the unit is coming.
|
String |
getFilenameAndTime(Unit unit)
For debugging, return the basename of the original audio file from which the unit is coming, as well as the start time in
that file.
|
JoinCostFunction |
getJoinCostFunction() |
StatisticalCostFunction |
getSCostFunction() |
TargetCostFunction |
getTargetCostFunction() |
UnitFileReader |
getUnitFileReader() |
void |
load(TargetCostFunction aTargetCostFunction,
JoinCostFunction aJoinCostFunction,
StatisticalCostFunction asCostFunction,
UnitFileReader aUnitReader,
CART aPreselectionCART,
TimelineReader anAudioTimeline,
TimelineReader aBasenameTimeline,
int backtraceLeafSize) |
void |
load(TargetCostFunction aTargetCostFunction,
JoinCostFunction aJoinCostFunction,
UnitFileReader aUnitReader,
CART aPreselectionCART,
TimelineReader anAudioTimeline,
TimelineReader aBasenameTimeline,
int backtraceLeafSize) |
protected TargetCostFunction targetCostFunction
protected JoinCostFunction joinCostFunction
protected StatisticalCostFunction sCostFunction
protected UnitFileReader unitReader
protected int numUnits
protected CART preselectionCART
protected TimelineReader audioTimeline
protected TimelineReader basenameTimeline
protected int backtrace
protected org.apache.log4j.Logger logger
public void load(TargetCostFunction aTargetCostFunction, JoinCostFunction aJoinCostFunction, UnitFileReader aUnitReader, CART aPreselectionCART, TimelineReader anAudioTimeline, TimelineReader aBasenameTimeline, int backtraceLeafSize)
public void load(TargetCostFunction aTargetCostFunction, JoinCostFunction aJoinCostFunction, StatisticalCostFunction asCostFunction, UnitFileReader aUnitReader, CART aPreselectionCART, TimelineReader anAudioTimeline, TimelineReader aBasenameTimeline, int backtraceLeafSize)
public TargetCostFunction getTargetCostFunction()
public JoinCostFunction getJoinCostFunction()
public UnitFileReader getUnitFileReader()
public TimelineReader getAudioTimeline()
public StatisticalCostFunction getSCostFunction()
public List<ViterbiCandidate> getCandidates(Target target)
target
- a Target object representing an optimal unitpublic String getFilenameAndTime(Unit unit)
unit
- unitCopyright © 2000–2016 DFKI GmbH. All rights reserved.