opennlp.grok.realize
Class Realizer

java.lang.Object
  |
  +--opennlp.grok.realize.Realizer

public class Realizer
extends java.lang.Object

The realizer manages the realization process.

Version:
$Revision: 1.4 $, $Date: 2002/11/26 13:55:52 $
Author:
Michael White

Field Summary
static int COMPLETENESS_AND_COMPLEMENTARITY_WEIGHTING
          Completeness and complementarity edge weighting.
static int COMPLETENESS_ONLY_WEIGHTING
          Completeness only edge weighting.
static int DEFAULT_WEIGHTING
          Default edge weighting.
 opennlp.common.parse.Lexicon lexicon
          The lexicon used to create edges.
static int NGRAMS_ONLY_WEIGHTING
          N-grams only edge weighting.
static int NO_WEIGHTING
          No edge weighting.
 opennlp.common.parse.RuleGroup rules
          The rules used to create edges.
 int timeLimitMS
          Default time limit.
 boolean waitForCompleteEdge
          Default flag for whether to wait for a complete edge.
 int weightingOption
          Default edge weighting option.
 
Constructor Summary
Realizer(opennlp.common.parse.Lexicon lexicon, opennlp.common.parse.RuleGroup rules)
          Constructor.
 
Method Summary
 Chart getChart()
          Returns the chart used in the latest request, or null if none.
 Edge realize(opennlp.common.synsem.LF lf, java.util.List targets)
          Realizes the input LF relative to the targets, returning the best edge found (or null if none).
 Edge realize(opennlp.common.synsem.LF lf, java.lang.String target)
          Realizes the input LF relative to a single target, returning the best edge found (or null if none).
 Edge realize(java.util.List preds, java.util.List targets)
          Realizes the input LF relative to the targets, returning the best edge found (or null if none).
 Edge realize(java.util.List preds, java.util.List targets, int weightingOption)
          Realizes the input LF relative to the targets, with the given edge weighting option, returning the best edge found (or null if none).
 Edge realize(java.util.List preds, java.util.List targets, int timeLimitMS, boolean waitForCompleteEdge)
          Realizes the input LF relative to the targets, returning the best edge found (or null if none) in the given time limit (in ms), potentially waiting longer for a complete edge according to the given flag.
 Edge realize(java.util.List preds, java.util.List targets, int weightingOption, int timeLimitMS, boolean waitForCompleteEdge)
          Realizes the input LF relative to the targets, with the given edge weighting option, returning the best edge found (or null if none) in the given time limit (in ms), potentially waiting longer for a complete edge according to the given flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lexicon

public final opennlp.common.parse.Lexicon lexicon
The lexicon used to create edges.


rules

public final opennlp.common.parse.RuleGroup rules
The rules used to create edges.


DEFAULT_WEIGHTING

public static final int DEFAULT_WEIGHTING
Default edge weighting.

See Also:
Constant Field Values

NGRAMS_ONLY_WEIGHTING

public static final int NGRAMS_ONLY_WEIGHTING
N-grams only edge weighting.

See Also:
Constant Field Values

COMPLETENESS_AND_COMPLEMENTARITY_WEIGHTING

public static final int COMPLETENESS_AND_COMPLEMENTARITY_WEIGHTING
Completeness and complementarity edge weighting.

See Also:
Constant Field Values

COMPLETENESS_ONLY_WEIGHTING

public static final int COMPLETENESS_ONLY_WEIGHTING
Completeness only edge weighting.

See Also:
Constant Field Values

NO_WEIGHTING

public static final int NO_WEIGHTING
No edge weighting.

See Also:
Constant Field Values

weightingOption

public int weightingOption
Default edge weighting option.


timeLimitMS

public int timeLimitMS
Default time limit.


waitForCompleteEdge

public boolean waitForCompleteEdge
Default flag for whether to wait for a complete edge.

Constructor Detail

Realizer

public Realizer(opennlp.common.parse.Lexicon lexicon,
                opennlp.common.parse.RuleGroup rules)
Constructor.

Method Detail

getChart

public Chart getChart()
Returns the chart used in the latest request, or null if none.


realize

public Edge realize(opennlp.common.synsem.LF lf,
                    java.lang.String target)
Realizes the input LF relative to a single target, returning the best edge found (or null if none).


realize

public Edge realize(opennlp.common.synsem.LF lf,
                    java.util.List targets)
Realizes the input LF relative to the targets, returning the best edge found (or null if none).


realize

public Edge realize(java.util.List preds,
                    java.util.List targets)
Realizes the input LF relative to the targets, returning the best edge found (or null if none).


realize

public Edge realize(java.util.List preds,
                    java.util.List targets,
                    int weightingOption)
Realizes the input LF relative to the targets, with the given edge weighting option, returning the best edge found (or null if none).


realize

public Edge realize(java.util.List preds,
                    java.util.List targets,
                    int timeLimitMS,
                    boolean waitForCompleteEdge)
Realizes the input LF relative to the targets, returning the best edge found (or null if none) in the given time limit (in ms), potentially waiting longer for a complete edge according to the given flag.


realize

public Edge realize(java.util.List preds,
                    java.util.List targets,
                    int weightingOption,
                    int timeLimitMS,
                    boolean waitForCompleteEdge)
Realizes the input LF relative to the targets, with the given edge weighting option, returning the best edge found (or null if none) in the given time limit (in ms), potentially waiting longer for a complete edge according to the given flag.



Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.