public abstract class AbstractTupleMatcher extends AbstractMatcher
Modifier and Type | Field and Description |
---|---|
AbstractConceptMatcher |
conceptMatcher |
Constructor and Description |
---|
AbstractTupleMatcher() |
AbstractTupleMatcher(AbstractConceptMatcher matcher)
Creates a new instance of a tuple matcher where the concepts will be matched using the given concept matcher.
|
Modifier and Type | Method and Description |
---|---|
protected String |
bullet(String s) |
abstract float |
compare(BinaryTuple masterTuple,
BinaryTuple tupleToMatch)
Perform a possible comparison between two tuples.
|
AbstractConceptMatcher |
getConceptMatcher() |
abstract float |
scoreTupleMatch(MatchedBinaryTuple masterTuple,
MatchedBinaryTuple tupleToMatch)
Performs the comparison between master and matchable tuple.
|
void |
setConceptMatcher(AbstractConceptMatcher conceptMatcher) |
explainYourself, isIgnoreCase, isVerboseEnabled, setIgnoreCase, setVerboseEnabled
public AbstractConceptMatcher conceptMatcher
public AbstractTupleMatcher(AbstractConceptMatcher matcher)
matcher
- any concept matcher. If null, then use the BasicConceptMatcher.public AbstractTupleMatcher()
public abstract float compare(BinaryTuple masterTuple, BinaryTuple tupleToMatch)
masterTuple
- the relation tuple considered to be the "correct" one (if any)tupleToMatch
- the candidate tuple that we want to match to the master.scoreTupleMatch(kb.matching.MatchedBinaryTuple, kb.matching.MatchedBinaryTuple)
public abstract float scoreTupleMatch(MatchedBinaryTuple masterTuple, MatchedBinaryTuple tupleToMatch)
compare(kb.BinaryTuple, kb.BinaryTuple)
protected String bullet(String s)
public AbstractConceptMatcher getConceptMatcher()
public void setConceptMatcher(AbstractConceptMatcher conceptMatcher)