opennlp.grok.grammar
Class ForwardSubstitution

java.lang.Object
  |
  +--opennlp.grok.grammar.AbstractRule
        |
        +--opennlp.grok.grammar.AbstractApplicationRule
              |
              +--opennlp.grok.grammar.AbstractSubstitutionRule
                    |
                    +--opennlp.grok.grammar.ForwardSubstitution
All Implemented Interfaces:
opennlp.common.parse.Rule

public class ForwardSubstitution
extends AbstractSubstitutionRule

Forward substitution, e.g. X/Y/Z Y/Z => X/Z

Version:
$Revision: 1.1 $, $Date: 2002/09/22 22:10:30 $
Author:
Jason Baldridge

Field Summary
 
Fields inherited from class opennlp.grok.grammar.AbstractSubstitutionRule
_argSlash, _isHarmonic
 
Fields inherited from class opennlp.grok.grammar.AbstractApplicationRule
_functorSlash
 
Fields inherited from class opennlp.grok.grammar.AbstractRule
_name, SHOW_DEBUG
 
Constructor Summary
ForwardSubstitution()
           
ForwardSubstitution(boolean isHarmonic)
           
 
Method Summary
 java.util.List applyRule(opennlp.common.synsem.Category[] inputs)
           
 java.lang.String toString()
           
 
Methods inherited from class opennlp.grok.grammar.AbstractSubstitutionRule
apply
 
Methods inherited from class opennlp.grok.grammar.AbstractApplicationRule
appendLFs, arity
 
Methods inherited from class opennlp.grok.grammar.AbstractRule
name, showApplyInstance, showApplyInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForwardSubstitution

public ForwardSubstitution()

ForwardSubstitution

public ForwardSubstitution(boolean isHarmonic)
Method Detail

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

toString

public java.lang.String toString()
Specified by:
toString in class AbstractRule


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