opennlp.grok.grammar
Class BackwardSubstitution

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

public class BackwardSubstitution
extends AbstractSubstitutionRule

Backward substitution, e.g. Y\Z X\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
BackwardSubstitution()
           
BackwardSubstitution(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

BackwardSubstitution

public BackwardSubstitution()

BackwardSubstitution

public BackwardSubstitution(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.