opennlp.grok.expression
Class CurriedCat

java.lang.Object
  |
  +--opennlp.grok.expression.CategoryAdapter
        |
        +--opennlp.grok.expression.CurriedCat
All Implemented Interfaces:
opennlp.common.structure.Category, java.io.Serializable, opennlp.common.synsem.Synner, opennlp.common.unify.Unifiable

public final class CurriedCat
extends CategoryAdapter
implements opennlp.common.synsem.Synner

The way of building large categories. Categories can either look left or right, designated by the forward and back slashes. They can also be non-directional (using the pipe)

syntax: (cat / cat) | (cat \ cat) | (cat | cat)

Version:
$Revision: 1.12 $, $Date: 2001/12/05 13:25:05 $
Author:
Jason Baldridge
See Also:
Serialized Form

Fields inherited from class opennlp.grok.expression.CategoryAdapter
_featStruc, F
 
Constructor Summary
CurriedCat(opennlp.common.structure.Category r, opennlp.common.structure.Category a)
           
CurriedCat(opennlp.common.structure.Category r, Slash s, opennlp.common.structure.Category a)
           
 
Method Summary
 opennlp.common.structure.Category copy()
           
 opennlp.common.structure.Category deepMap(opennlp.common.structure.CategoryFcn f)
           
 boolean equals(java.lang.Object c)
           
 java.lang.Object fill(opennlp.common.unify.Substitution s)
           
 void forall(opennlp.common.structure.CategoryFcn f)
           
 opennlp.common.structure.Category getArgument()
           
protected  java.lang.String getHashString(java.util.HashMap subst, int[] c)
           
 opennlp.common.structure.Category getResult()
           
 Slash getSlash()
           
 boolean occurs(opennlp.common.unify.Variable v)
           
 java.lang.String prettyPrint(java.lang.String pad)
           
 opennlp.common.structure.Category shallowCopy()
           
 java.lang.String toString()
           
 opennlp.common.unify.CategorySubstitution unify(opennlp.common.structure.Category c, opennlp.common.unify.CategorySubstitution S)
           
 java.lang.Object unify(java.lang.Object o, opennlp.common.unify.Substitution sub)
           
 java.lang.Object unifyCheck(java.lang.Object o)
           
 
Methods inherited from class opennlp.grok.expression.CategoryAdapter
copy, getFeature, getFeatureStructure, getSpan, getSpanEnd, getSpanStart, hashString, makeString, prettyLength, prettyPrint, setFeature, setFeatureStructure, setSpan, shallowEquals, showFeature, tooLong
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface opennlp.common.structure.Category
getFeature, getFeatureStructure, getSpan, getSpanEnd, getSpanStart, hashString, prettyPrint, setFeature, setFeatureStructure, setSpan, shallowEquals
 

Constructor Detail

CurriedCat

public CurriedCat(opennlp.common.structure.Category r,
                  Slash s,
                  opennlp.common.structure.Category a)

CurriedCat

public CurriedCat(opennlp.common.structure.Category r,
                  opennlp.common.structure.Category a)
Method Detail

getResult

public opennlp.common.structure.Category getResult()

getSlash

public Slash getSlash()

getArgument

public opennlp.common.structure.Category getArgument()

copy

public opennlp.common.structure.Category copy()
Specified by:
copy in interface opennlp.common.structure.Category
Overrides:
copy in class CategoryAdapter

shallowCopy

public opennlp.common.structure.Category shallowCopy()

deepMap

public opennlp.common.structure.Category deepMap(opennlp.common.structure.CategoryFcn f)
Specified by:
deepMap in interface opennlp.common.structure.Category
Overrides:
deepMap in class CategoryAdapter

forall

public void forall(opennlp.common.structure.CategoryFcn f)
Specified by:
forall in interface opennlp.common.structure.Category
Overrides:
forall in class CategoryAdapter

unify

public opennlp.common.unify.CategorySubstitution unify(opennlp.common.structure.Category c,
                                                       opennlp.common.unify.CategorySubstitution S)

unifyCheck

public java.lang.Object unifyCheck(java.lang.Object o)
                            throws opennlp.common.unify.UnifyFailure
Specified by:
unifyCheck in interface opennlp.common.unify.Unifiable
Overrides:
unifyCheck in class CategoryAdapter

unify

public java.lang.Object unify(java.lang.Object o,
                              opennlp.common.unify.Substitution sub)
                       throws opennlp.common.unify.UnifyFailure
Specified by:
unify in interface opennlp.common.unify.Unifiable
Overrides:
unify in class CategoryAdapter

occurs

public boolean occurs(opennlp.common.unify.Variable v)
Specified by:
occurs in interface opennlp.common.unify.Unifiable
Overrides:
occurs in class CategoryAdapter

fill

public java.lang.Object fill(opennlp.common.unify.Substitution s)
Specified by:
fill in interface opennlp.common.unify.Unifiable
Overrides:
fill in class CategoryAdapter

equals

public boolean equals(java.lang.Object c)
Overrides:
equals in class CategoryAdapter

prettyPrint

public java.lang.String prettyPrint(java.lang.String pad)
Overrides:
prettyPrint in class CategoryAdapter

toString

public java.lang.String toString()
Specified by:
toString in interface opennlp.common.structure.Category
Overrides:
toString in class CategoryAdapter

getHashString

protected java.lang.String getHashString(java.util.HashMap subst,
                                         int[] c)


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