|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wcohen.ss.api.StringDistanceTeacher com.wcohen.ss.expt.BasicTeacher
public class BasicTeacher
Train a StringDistanceLearner.
Constructor Summary | |
---|---|
BasicTeacher(Blocker blocker,
MatchData data)
Create a teacher from a blocker and a dataset. |
|
BasicTeacher(StringWrapperIterator wrapperIterator,
DistanceInstanceIterator distanceInstancePool,
DistanceInstanceIterator distanceExamplePool)
Create a teacher using specific values for the various iterators. |
Method Summary | |
---|---|
DistanceInstanceIterator |
distanceExamplePool()
A pool of unlabeled pairs of strings over which distances will be computed, to be used for supervised learning. |
DistanceInstanceIterator |
distanceInstancePool()
A pool of unlabeled pairs of strings over which distances will be computed, to be used for active or semi-supervised learning. |
boolean |
hasAnswers()
Return true if this teacher can answer more queries. |
DistanceInstance |
labelInstance(DistanceInstance distanceInstance)
Label an instance queried by the learner. |
StringWrapperIterator |
stringWrapperIterator()
Strings over which distances will be computed. |
Methods inherited from class com.wcohen.ss.api.StringDistanceTeacher |
---|
train |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicTeacher(Blocker blocker, MatchData data)
public BasicTeacher(StringWrapperIterator wrapperIterator, DistanceInstanceIterator distanceInstancePool, DistanceInstanceIterator distanceExamplePool)
Method Detail |
---|
public StringWrapperIterator stringWrapperIterator()
StringDistanceTeacher
stringWrapperIterator
in class StringDistanceTeacher
public DistanceInstanceIterator distanceInstancePool()
StringDistanceTeacher
distanceInstancePool
in class StringDistanceTeacher
public DistanceInstanceIterator distanceExamplePool()
StringDistanceTeacher
distanceExamplePool
in class StringDistanceTeacher
public DistanceInstance labelInstance(DistanceInstance distanceInstance)
StringDistanceTeacher
labelInstance
in class StringDistanceTeacher
public boolean hasAnswers()
StringDistanceTeacher
hasAnswers
in class StringDistanceTeacher
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |