opennlp.grok.expression
Class AltSet

java.lang.Object
  |
  +--opennlp.grok.expression.CategoryAdapter
        |
        +--opennlp.grok.expression.AltSet
All Implemented Interfaces:
opennlp.common.structure.Category, opennlp.common.synsem.Denoter, java.io.Serializable, opennlp.common.unify.Unifiable
Direct Known Subclasses:
FCAdapter, GrokKind

public class AltSet
extends CategoryAdapter
implements opennlp.common.synsem.Denoter

An alternative set is a pair of a set plus the characterizing function that defines the set. This is useful for a lot of semantic analyses, but this implementation probably needs rethinking. Hence the lack of documentation.

Version:
$Revision: 1.1.1.1 $, $Date: 2001/10/23 15:17:50 $
Author:
Gann Bierner
See Also:
Serialized Form

Field Summary
static java.lang.String AND
           
protected  GrokSet description
           
protected  GrokSet gs
           
static java.lang.String INTERSECT
           
static java.lang.String MINUS
           
static java.lang.String OR
           
static java.lang.String UNION
           
 
Fields inherited from class opennlp.grok.expression.CategoryAdapter
F
 
Constructor Summary
AltSet()
           
AltSet(java.util.Collection desc)
           
AltSet(opennlp.common.synsem.Denoter re)
           
AltSet(opennlp.common.synsem.Denoter refexp, java.util.Collection entities)
           
AltSet(opennlp.common.synsem.Denoter refexp, GrokSet set)
           
AltSet(opennlp.common.synsem.Denoter refexp, java.lang.Object entity)
           
AltSet(opennlp.common.synsem.Denoter refexp, java.lang.Object[] entities)
           
 
Method Summary
 void add(java.lang.Object o)
           
 void addAll(AltSet c)
           
 void addAll(java.util.Collection c)
           
 boolean contains(java.lang.Object o)
           
 opennlp.common.structure.Category copy()
           
 opennlp.common.structure.Category deepMap(opennlp.common.structure.CategoryFcn f)
           
 java.lang.String desc()
           
 boolean equals(java.lang.Object _s)
           
 opennlp.common.synsem.Denoter eval()
           
 GrokSet getDescriptionSet()
           
 opennlp.common.synsem.DominanceHandler getDominanceHandler()
           
 opennlp.common.synsem.Denoter getFirst()
           
 GrokSet getSet()
           
 AltSet intersect(AltSet s)
           
 java.util.Iterator iterator()
           
 AltSet minus(java.lang.Object d)
           
 java.lang.String name()
           
 boolean occurs(opennlp.common.unify.Variable v)
           
 AltSet plural()
           
 java.lang.String printContents()
           
 void remove(java.lang.Object o)
           
 AltSet setDifference(AltSet s)
           
 void setDominanceHandler(opennlp.common.synsem.DominanceHandler _dh)
           
 int size()
           
 java.lang.Object[] toArray()
           
 java.lang.String toString()
           
 AltSet union(AltSet s)
           
 
Methods inherited from class opennlp.grok.expression.CategoryAdapter
copy, forall, getFeature, getSpan, getSpanEnd, getSpanStart, hashString, makeString, prettyLength, prettyPrint, prettyPrint, setFeature, 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
forall, getFeature, getSpan, getSpanEnd, getSpanStart, hashString, prettyPrint, setFeature, setSpan, shallowEquals
 

Field Detail

INTERSECT

public static final java.lang.String INTERSECT

UNION

public static final java.lang.String UNION

AND

public static final java.lang.String AND

OR

public static final java.lang.String OR

MINUS

public static final java.lang.String MINUS

description

protected GrokSet description

gs

protected GrokSet gs
Constructor Detail

AltSet

public AltSet()

AltSet

public AltSet(opennlp.common.synsem.Denoter re)

AltSet

public AltSet(java.util.Collection desc)

AltSet

public AltSet(opennlp.common.synsem.Denoter refexp,
              java.lang.Object entity)

AltSet

public AltSet(opennlp.common.synsem.Denoter refexp,
              java.lang.Object[] entities)

AltSet

public AltSet(opennlp.common.synsem.Denoter refexp,
              java.util.Collection entities)

AltSet

public AltSet(opennlp.common.synsem.Denoter refexp,
              GrokSet set)
Method Detail

getFirst

public opennlp.common.synsem.Denoter getFirst()

getDescriptionSet

public GrokSet getDescriptionSet()

getSet

public GrokSet getSet()

add

public void add(java.lang.Object o)

addAll

public void addAll(java.util.Collection c)

addAll

public void addAll(AltSet c)

remove

public void remove(java.lang.Object o)

contains

public boolean contains(java.lang.Object o)

size

public int size()

iterator

public java.util.Iterator iterator()

toArray

public java.lang.Object[] toArray()

occurs

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

equals

public boolean equals(java.lang.Object _s)
Specified by:
equals in interface opennlp.common.unify.Unifiable
Overrides:
equals in class CategoryAdapter

intersect

public AltSet intersect(AltSet s)

union

public AltSet union(AltSet s)

setDifference

public AltSet setDifference(AltSet s)

minus

public AltSet minus(java.lang.Object d)

plural

public AltSet plural()

copy

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

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

setDominanceHandler

public void setDominanceHandler(opennlp.common.synsem.DominanceHandler _dh)
Specified by:
setDominanceHandler in interface opennlp.common.synsem.Denoter

getDominanceHandler

public opennlp.common.synsem.DominanceHandler getDominanceHandler()
Specified by:
getDominanceHandler in interface opennlp.common.synsem.Denoter

eval

public opennlp.common.synsem.Denoter eval()
Specified by:
eval in interface opennlp.common.synsem.Denoter

desc

public java.lang.String desc()
Specified by:
desc in interface opennlp.common.synsem.Denoter

name

public java.lang.String name()

printContents

public java.lang.String printContents()

toString

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


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