|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wcohen.ss.expt.MatchData
public class MatchData
Holds data for evaluating a distance metric.
Nested Class Summary | |
---|---|
static class |
MatchData.InputFormatException
Signals an incorrectly formatted MatchData file. |
static class |
MatchData.Instance
A single item (aka record, string, etc) to match against others. |
static class |
MatchData.MatchIterator
Iterates over all stored StringWrappers |
Constructor Summary | |
---|---|
MatchData()
|
|
MatchData(java.lang.String filename)
Read match data from a file. |
Method Summary | |
---|---|
void |
addInstance(java.lang.String src,
java.lang.String id,
java.lang.String text)
Add a single instance, with given src and id, to the datafile |
java.lang.String |
getFilename()
|
MatchData.Instance |
getInstance(java.lang.String src,
int j)
Get the j-th record for the named source. |
StringWrapperIterator |
getIterator()
|
java.lang.String |
getSource(int i)
Get string identifier for i-th source |
static void |
main(java.lang.String[] argv)
|
int |
numInstances(java.lang.String src)
Number of records for source with given string id |
int |
numSources()
Number of sources in data set |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MatchData(java.lang.String filename) throws MatchData.InputFormatException
MatchData.InputFormatException
public MatchData()
Method Detail |
---|
public void addInstance(java.lang.String src, java.lang.String id, java.lang.String text)
public int numSources()
public java.lang.String getSource(int i)
public int numInstances(java.lang.String src)
public MatchData.Instance getInstance(java.lang.String src, int j)
public StringWrapperIterator getIterator()
public java.lang.String getFilename()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |