|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.nlpir.irf.matcher.Matcherbp
The Matcherbp class is responsible for matching one set of indexing
features against another (e.g. a set from a document used as a query
against a set derived from a document and kept in an index). Different
kinds of matching can be defined since features are complex objects
containing other objects.
Note: All these functions return a double result which can only be 1.0
or 0.0 and not a boolean. This is because another type of Matcher could
be defined, returning more precise results.
IndexingFeature
Constructor Summary | |
Matcherbp()
|
Method Summary | |
boolean |
exactMatch(DataElem de1,
DataElem de2)
Determines if two data elements match exactly |
boolean |
exactMatch(IndexingFeature if1,
IndexingFeature if2)
Determines if two indexing features match exactly |
boolean |
extendedExactMatch(IndexingFeature if1,
IndexingFeature if2)
Determines if two indexing features have the same attribute name and match |
double |
match(DataElem de1,
DataElem de2)
Determines if two data elements match |
double |
match(IndexingFeature if1,
IndexingFeature if2)
Determines whether two indexing features match |
boolean |
sameAddress(IndexingFeature if1,
IndexingFeature if2)
Determines if two indexing features have the same attribute name and match |
boolean |
sameAttributeName(IndexingFeature if1,
IndexingFeature if2)
Determine if two indexing features have the same attribute name |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public Matcherbp()
Method Detail |
public double match(IndexingFeature if1, IndexingFeature if2)
if1
- First indexing featureif2
- Second indexing featurepublic double match(DataElem de1, DataElem de2)
de1
- First data elementde2
- Second data elementpublic boolean exactMatch(DataElem de1, DataElem de2)
de1
- First data elementde2
- Second data elementpublic boolean exactMatch(IndexingFeature if1, IndexingFeature if2)
if1
- First indexing featureif2
- Second indexing featurepublic boolean extendedExactMatch(IndexingFeature if1, IndexingFeature if2)
if1
- First indexing featureif2
- Second indexing featurepublic boolean sameAddress(IndexingFeature if1, IndexingFeature if2)
if1
- First indexing featureif2
- Second indexing featurepublic boolean sameAttributeName(IndexingFeature if1, IndexingFeature if2)
if1
- First indexing feature.if2
- Second indexing feature.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |