Parsing Engine

danbikel.parser.constraints
Class LexTreeConstraintSetFactory

java.lang.Object
  extended by danbikel.parser.constraints.LexTreeConstraintSetFactory
All Implemented Interfaces:
ConstraintSetFactory

public class LexTreeConstraintSetFactory
extends Object
implements ConstraintSetFactory

Factory to produce LexTreeConstraintSet objects.


Constructor Summary
LexTreeConstraintSetFactory()
          Constructs a factory for LexTreeConstraintSet instances.
 
Method Summary
 ConstraintSet get()
          Gets a new, empty LexTreeConstraintSet instance.
 ConstraintSet get(Object tree)
          Gets a new set of constraints for parsing the specified lexicalized tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LexTreeConstraintSetFactory

public LexTreeConstraintSetFactory()
Constructs a factory for LexTreeConstraintSet instances.

Method Detail

get

public ConstraintSet get()
Gets a new, empty LexTreeConstraintSet instance.

Specified by:
get in interface ConstraintSetFactory
Returns:
a new, empty LexTreeConstraintSet instance.

get

public ConstraintSet get(Object tree)
Gets a new set of constraints for parsing the specified lexicalized tree.

Specified by:
get in interface ConstraintSetFactory
Parameters:
tree - the lexicalized tree for which to get constraints; lexicalization performed by the current head finder.
Returns:
a new set of constraints for a lexicalized version of the specified parse tree.

Parsing Engine

Author: Dan Bikel.