public interface StringDistanceLearner
| Modifier and Type | Method and Description |
|---|---|
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.
|
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()
Copyright © 2016. All rights reserved.