|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StringDistanceLearner
Learn a StringDistance.
Method Summary | |
---|---|
void |
addExample(DistanceInstance answeredQuery)
Accept the answer to the last query. |
StringDistance |
getDistance()
Return the learned distance. |
boolean |
hasNextQuery()
Returns true if the learner has more queries to answer. |
DistanceInstance |
nextQuery()
Returns a DistanceInstance for which the learner would like a label. |
DistanceInstanceIterator |
prepare(DistanceInstanceIterator i)
Preprocess a DistanceInstanceIterator for supervised training. |
StringWrapperIterator |
prepare(StringWrapperIterator i)
Preprocess a StringWrapperIterator for unsupervised training. |
void |
setDistanceInstancePool(DistanceInstanceIterator i)
Accept a set of unlabeled DistanceInstance, to use in making distance instance queries. |
void |
setStringWrapperPool(StringWrapperIterator i)
Unsupervised learning method that observes strings for which distance will be computed. |
Method Detail |
---|
StringWrapperIterator prepare(StringWrapperIterator i)
DistanceInstanceIterator prepare(DistanceInstanceIterator i)
void setStringWrapperPool(StringWrapperIterator i)
void setDistanceInstancePool(DistanceInstanceIterator i)
boolean hasNextQuery()
DistanceInstance nextQuery()
void addExample(DistanceInstance answeredQuery)
StringDistance getDistance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |