opennlp.grok.grammar
Class ForwardComposition

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

public class ForwardComposition
extends AbstractCompositionRule

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

Version:
$Revision: 1.12 $, $Date: 2002/09/15 19:47:13 $
Author:
Jason Baldridge

Field Summary
 
Fields inherited from class opennlp.grok.grammar.AbstractCompositionRule
_argSlash, _isHarmonic
 
Fields inherited from class opennlp.grok.grammar.AbstractApplicationRule
_functorSlash
 
Fields inherited from class opennlp.grok.grammar.AbstractRule
_name, SHOW_DEBUG
 
Constructor Summary
ForwardComposition()
           
ForwardComposition(boolean isHarmonic)
           
 
Method Summary
 java.util.List applyRule(opennlp.common.synsem.Category[] inputs)
           
 java.lang.String toString()
           
 
Methods inherited from class opennlp.grok.grammar.AbstractCompositionRule
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

ForwardComposition

public ForwardComposition()

ForwardComposition

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