public class IdentityMatcher extends Processor
Modifier and Type | Field and Description |
---|---|
boolean |
computeAndAtom
compute the and atoms
|
boolean |
computeDistance
compute the distance
|
boolean |
computeOptAtom
compute the opt atoms
|
double |
costDeletion
deletion cost
|
double |
costInsertion
insertion cost
|
double |
costSubstitution
substitution cost
|
double |
costTransposition
transposition cost
|
boolean |
keepLongestMatchOnly
keep the longest match only
|
java.lang.String |
linkWordTag
link/stop word tag (if null, relatedtermspreprocessor's link words are used)
|
boolean |
noOverlapInAndAtoms
avoid and atoms overlapping
|
boolean |
noOverlapInOptAtoms
avoid opt atoms overlapping
|
boolean |
oneMatchPerAtomOnlyOnAnd
forbid an annotation to be used by several and atoms
|
boolean |
oneMatchPerAtomOnlyOnOpt
forbid an annotation to be used by several opt atoms
|
java.lang.String |
resource
The processor resource
|
Constructor and Description |
---|
IdentityMatcher(java.lang.String name,
java.lang.String resource,
java.lang.String fields) |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
void |
init(java.lang.String name,
java.lang.String[] fields)
Initialize the processor
|
IdentityMatcherResult[] |
results()
Get all matching expressions
Must be called after
pipe.endDocument() . |
IdentityMatcherResult[] |
results(float maxDistance,
int minCovering,
int minCoveringIncludingOpt,
int minCoveringIncludingOptNoLinkWord)
Get all matching expressions
Must be called after
pipe.endDocument() |
checkResource, destroy, getName, init
public java.lang.String resource
public boolean computeDistance
public boolean computeAndAtom
public boolean computeOptAtom
public double costInsertion
public double costDeletion
public double costSubstitution
public double costTransposition
public java.lang.String linkWordTag
public boolean oneMatchPerAtomOnlyOnAnd
public boolean oneMatchPerAtomOnlyOnOpt
public boolean noOverlapInAndAtoms
public boolean noOverlapInOptAtoms
public boolean keepLongestMatchOnly
public IdentityMatcher(java.lang.String name, java.lang.String resource, java.lang.String fields)
public void init(java.lang.String name, java.lang.String[] fields)
protected void finalize()
finalize
in class java.lang.Object
public IdentityMatcherResult[] results()
pipe.endDocument()
.public IdentityMatcherResult[] results(float maxDistance, int minCovering, int minCoveringIncludingOpt, int minCoveringIncludingOptNoLinkWord)
pipe.endDocument()
maxDistance
- The maximum distance a match must have to be selectedminCovering
- The minimum covering a match must have to be selectedminCoveringIncludingOpt
- The minimum covering including optional atoms a match must have to be selectedminCoveringIncludingOptNoLinkWord
- The minimum covering including optional atoms but avoiding stop words a match must have to be selectedCopyright © 2013 Dassault Systèmes, All Rights Reserved.