|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opennlp.grok.realize.Edge
An edge is a sign paired with a bitset representing its coverage of the input predicates. It also stores a completeness percentage and an n-gram precision. Edges are created by an EdgeFactory and managed by a Chart. The design follows the Singleton pattern.
Field Summary | |
java.util.BitSet |
bitset
The coverage bitset. |
double |
completeness
The completeness percentage. |
java.util.BitSet |
indices
The indices bitset. |
double |
nGramPrecision
The n-gram precision. |
static boolean |
SHOW_COMPLETENESS
Whether to show completeness info in toString. |
opennlp.common.synsem.Sign |
sign
The sign. |
Constructor Summary | |
Edge(opennlp.common.synsem.Sign sign,
java.util.BitSet bitset,
java.util.BitSet indices,
double completeness,
double nGramPrecision)
Constructor. |
Method Summary | |
boolean |
complete()
Returns whether this edge has completeness 1.0, ie, covers all the input preds. |
java.lang.String |
hashString()
Returns a hash string for this edge. |
boolean |
indicesIntersect(Edge edge)
Returns whether the indices bitset of this edge intersects with the indices bitset of the given one. |
boolean |
intersects(Edge edge)
Returns whether the coverage bitset of this edge intersects with the coverage bitset of the given one. |
java.lang.String |
toString()
Returns a string for the edge in the format {completeness} [nGramPrecision] orthography {bitset} :- category, where {completeness} and {bitset} are left out if SHOW_COMPLETENESS is false. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static boolean SHOW_COMPLETENESS
public final opennlp.common.synsem.Sign sign
public final java.util.BitSet bitset
public final java.util.BitSet indices
public final double completeness
public final double nGramPrecision
Constructor Detail |
public Edge(opennlp.common.synsem.Sign sign, java.util.BitSet bitset, java.util.BitSet indices, double completeness, double nGramPrecision)
Method Detail |
public boolean complete()
public boolean intersects(Edge edge)
public boolean indicesIntersect(Edge edge)
public java.lang.String hashString()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |