opennlp.grok.expression
Class CategoryAdapter

java.lang.Object
  |
  +--opennlp.grok.expression.CategoryAdapter
All Implemented Interfaces:
opennlp.common.structure.Category, java.io.Serializable, opennlp.common.unify.Unifiable
Direct Known Subclasses:
AtomCat, CurriedCat, VariableAdapter

public abstract class CategoryAdapter
extends java.lang.Object
implements opennlp.common.structure.Category

The adapter for CCG categories. Creates some reasonable default behavior.

Version:
$Revision: 1.6 $, $Date: 2001/12/05 13:25:05 $
Author:
Gann Bierner
See Also:
Serialized Form

Field Summary
protected  opennlp.common.unify.FeatureStructure _featStruc
           
protected  opennlp.common.unify.Feature F
           
 
Constructor Summary
CategoryAdapter()
           
 
Method Summary
abstract  opennlp.common.structure.Category copy()
           
static void copy(opennlp.common.structure.Category o, opennlp.common.structure.Category n)
           
 opennlp.common.structure.Category deepMap(opennlp.common.structure.CategoryFcn f)
           
abstract  boolean equals(java.lang.Object c)
           
 java.lang.Object fill(opennlp.common.unify.Substitution s)
           
 void forall(opennlp.common.structure.CategoryFcn f)
           
 opennlp.common.unify.Feature getFeature()
           
 opennlp.common.unify.FeatureStructure getFeatureStructure()
           
 opennlp.common.util.Pair getSpan()
           
 int getSpanEnd()
           
 int getSpanStart()
           
 java.lang.String hashString()
           
protected  java.lang.String makeString(int l)
           
abstract  boolean occurs(opennlp.common.unify.Variable v)
           
protected  int prettyLength(java.lang.String s)
           
 java.lang.String prettyPrint()
           
protected  java.lang.String prettyPrint(java.lang.String pad)
           
 void setFeature(opennlp.common.unify.Feature feat)
           
 void setFeatureStructure(opennlp.common.unify.FeatureStructure fs)
           
 void setSpan(int a, int b)
           
 boolean shallowEquals(java.lang.Object o)
           
static boolean showFeature()
           
static int tooLong()
           
abstract  java.lang.String toString()
           
 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 java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

F

protected opennlp.common.unify.Feature F

_featStruc

protected opennlp.common.unify.FeatureStructure _featStruc
Constructor Detail

CategoryAdapter

public CategoryAdapter()
Method Detail

toString

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

equals

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

occurs

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

copy

public abstract opennlp.common.structure.Category copy()
Specified by:
copy in interface opennlp.common.structure.Category

shallowEquals

public boolean shallowEquals(java.lang.Object o)
Specified by:
shallowEquals in interface opennlp.common.structure.Category

deepMap

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

forall

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

getFeature

public opennlp.common.unify.Feature getFeature()
Specified by:
getFeature in interface opennlp.common.structure.Category

setFeature

public void setFeature(opennlp.common.unify.Feature feat)
Specified by:
setFeature in interface opennlp.common.structure.Category

fill

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

getFeatureStructure

public opennlp.common.unify.FeatureStructure getFeatureStructure()
Specified by:
getFeatureStructure in interface opennlp.common.structure.Category

setFeatureStructure

public void setFeatureStructure(opennlp.common.unify.FeatureStructure fs)
Specified by:
setFeatureStructure in interface opennlp.common.structure.Category

getSpan

public opennlp.common.util.Pair getSpan()
Specified by:
getSpan in interface opennlp.common.structure.Category

getSpanStart

public int getSpanStart()
Specified by:
getSpanStart in interface opennlp.common.structure.Category

getSpanEnd

public int getSpanEnd()
Specified by:
getSpanEnd in interface opennlp.common.structure.Category

setSpan

public void setSpan(int a,
                    int b)
Specified by:
setSpan in interface opennlp.common.structure.Category

unifyCheck

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

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

prettyPrint

public java.lang.String prettyPrint()
Specified by:
prettyPrint in interface opennlp.common.structure.Category

prettyPrint

protected java.lang.String prettyPrint(java.lang.String pad)

prettyLength

protected int prettyLength(java.lang.String s)

makeString

protected java.lang.String makeString(int l)

hashString

public java.lang.String hashString()
Specified by:
hashString in interface opennlp.common.structure.Category

copy

public static void copy(opennlp.common.structure.Category o,
                        opennlp.common.structure.Category n)

showFeature

public static boolean showFeature()

tooLong

public static int tooLong()


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