opennlp.grok.grammar
Class AbstractTypeRaisingRule

java.lang.Object
  |
  +--opennlp.grok.grammar.AbstractRule
        |
        +--opennlp.grok.grammar.AbstractTypeRaisingRule
All Implemented Interfaces:
opennlp.common.parse.Rule
Direct Known Subclasses:
BackwardTypeRaising, ForwardTypeRaising

public abstract class AbstractTypeRaisingRule
extends AbstractRule

Type-raising, e.g. np => s/(s\np)

Version:
$Revision: 1.22 $, $Date: 2002/11/28 15:01:21 $
Author:
Jason Baldridge, Michael White

Field Summary
protected  opennlp.common.synsem.Category _arg
           
protected  Slash _embeddedSlash
           
protected  opennlp.common.synsem.Category _result
           
protected  Slash _upperSlash
           
 
Fields inherited from class opennlp.grok.grammar.AbstractRule
_name, SHOW_DEBUG
 
Constructor Summary
protected AbstractTypeRaisingRule(java.lang.String name, Slash uslash, Slash eslash, boolean useDollar)
           
 
Method Summary
protected  java.util.List apply(opennlp.common.synsem.Category input)
           
 java.util.List applyRule(opennlp.common.synsem.Category[] inputs)
           
 int arity()
           
 
Methods inherited from class opennlp.grok.grammar.AbstractRule
name, showApplyInstance, showApplyInstance, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_upperSlash

protected Slash _upperSlash

_embeddedSlash

protected Slash _embeddedSlash

_result

protected opennlp.common.synsem.Category _result

_arg

protected opennlp.common.synsem.Category _arg
Constructor Detail

AbstractTypeRaisingRule

protected AbstractTypeRaisingRule(java.lang.String name,
                                  Slash uslash,
                                  Slash eslash,
                                  boolean useDollar)
Method Detail

arity

public int arity()

applyRule

public java.util.List applyRule(opennlp.common.synsem.Category[] inputs)
                         throws opennlp.common.unify.UnifyFailure
Specified by:
applyRule in interface opennlp.common.parse.Rule
Specified by:
applyRule in class AbstractRule
opennlp.common.unify.UnifyFailure

apply

protected java.util.List apply(opennlp.common.synsem.Category input)
                        throws opennlp.common.unify.UnifyFailure
opennlp.common.unify.UnifyFailure


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