|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opennlp.grok.realize.EdgeFactory
The EdgeFactory is responsible for creating edges. A single edge factory instance per realization request is assumed.
Field Summary | |
opennlp.common.parse.Lexicon |
lexicon
The lexicon used to create edges. |
static java.lang.String |
NO_SEM_FLAG
Flag used in the lexicon to indicate a purely syntactic edge, with no associated semantics. |
java.util.List |
preds
The elementary predications to be covered. |
opennlp.common.parse.RuleGroup |
rules
The rules used to create edges. |
java.util.List |
targets
The target phrases for computing n-gram precision. |
Constructor Summary | |
EdgeFactory(opennlp.common.parse.Lexicon lexicon,
opennlp.common.parse.RuleGroup rules,
java.util.List preds,
java.util.List targets)
Constructor. |
Method Summary | |
java.util.List |
createInitialEdges()
Returns all lexical edges that cover some of the input semantics. |
java.util.List |
createNewEdges(Edge edge)
Returns all edges that can be created by applying a unary rule to the given edge or by combining it with a purely syntactic edge. |
java.util.List |
createNewEdges(Edge edgeA,
Edge edgeB,
boolean bothDirections)
Returns all edges that can be created by combining the given edges, with one or both directions tried according to the given flag. |
boolean |
pairedWith(Edge edgeA,
Edge edgeB)
Returns whether the indices for the two edges are in a PairedWith relation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final opennlp.common.parse.Lexicon lexicon
public final opennlp.common.parse.RuleGroup rules
public final java.util.List preds
public final java.util.List targets
public static final java.lang.String NO_SEM_FLAG
Constructor Detail |
public EdgeFactory(opennlp.common.parse.Lexicon lexicon, opennlp.common.parse.RuleGroup rules, java.util.List preds, java.util.List targets)
Method Detail |
public boolean pairedWith(Edge edgeA, Edge edgeB)
public java.util.List createInitialEdges()
public java.util.List createNewEdges(Edge edgeA, Edge edgeB, boolean bothDirections)
public java.util.List createNewEdges(Edge edge)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |