public abstract class StringDistanceTeacher extends Object
| Constructor and Description |
|---|
StringDistanceTeacher() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract DistanceInstanceIterator |
distanceExamplePool()
A pool of unlabeled pairs of strings over which distances will be computed,
to be used for supervised learning.
|
protected abstract DistanceInstanceIterator |
distanceInstancePool()
A pool of unlabeled pairs of strings over which distances will be computed,
to be used for active or semi-supervised learning.
|
protected abstract boolean |
hasAnswers()
Return true if this teacher can answer more queries.
|
protected abstract DistanceInstance |
labelInstance(DistanceInstance distanceInstance)
Label an instance queried by the learner.
|
protected abstract StringWrapperIterator |
stringWrapperIterator()
Strings over which distances will be computed.
|
StringDistance |
train(StringDistanceLearner learner) |
public final StringDistance train(StringDistanceLearner learner)
protected abstract StringWrapperIterator stringWrapperIterator()
protected abstract DistanceInstanceIterator distanceInstancePool()
protected abstract DistanceInstanceIterator distanceExamplePool()
protected abstract DistanceInstance labelInstance(DistanceInstance distanceInstance)
protected abstract boolean hasAnswers()
Copyright © 2016. All rights reserved.