|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wcohen.ss.api.StringDistanceTeacher
public abstract class StringDistanceTeacher
Train a StringDistanceLearner and return the learned StringDistance, using some unspecified source of information to train the learner.
Constructor Summary | |
---|---|
StringDistanceTeacher()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringDistanceTeacher()
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |