|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarytts.unitselection.data.FeatureFileReader
public class FeatureFileReader
| Field Summary | |
|---|---|
protected FeatureDefinition |
featureDefinition
|
protected FeatureVector[] |
featureVectors
|
protected MaryHeader |
hdr
|
| Constructor Summary | |
|---|---|
FeatureFileReader()
Empty constructor; need to call load() separately when using this. |
|
FeatureFileReader(java.lang.String fileName)
|
|
| Method Summary | |
|---|---|
FeatureVector[] |
getCopyOfFeatureVectors()
Return a shallow copy of the array of feature vectors. |
FeatureDefinition |
getFeatureDefinition()
|
static FeatureFileReader |
getFeatureFileReader(java.lang.String fileName)
|
FeatureVector |
getFeatureVector(int unitIndex)
Get the unit feature vector for the given unit index number. |
FeatureVector |
getFeatureVector(Unit unit)
Get the unit feature vector for the given unit. |
FeatureVector[] |
getFeatureVectors()
Return the internal array of feature vectors. |
int |
getNumberOfUnits()
|
boolean |
load(java.io.DataInputStream dis)
|
void |
load(java.lang.String fileName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MaryHeader hdr
protected FeatureDefinition featureDefinition
protected FeatureVector[] featureVectors
| Constructor Detail |
|---|
public FeatureFileReader()
load(String)
public FeatureFileReader(java.lang.String fileName)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public static FeatureFileReader getFeatureFileReader(java.lang.String fileName)
throws java.io.IOException
java.io.IOException
public void load(java.lang.String fileName)
throws java.io.IOException
java.io.IOException
public boolean load(java.io.DataInputStream dis)
throws java.io.IOException
java.io.IOExceptionpublic FeatureVector getFeatureVector(int unitIndex)
unitIndex - the absolute index number of a unit in the database
public FeatureVector[] getCopyOfFeatureVectors()
public FeatureVector[] getFeatureVectors()
public FeatureVector getFeatureVector(Unit unit)
unit - a unit in the database
public FeatureDefinition getFeatureDefinition()
public int getNumberOfUnits()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||