gate.creole.nerc
Class EntitySet
java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
gate.creole.nerc.EntitySet
- All Implemented Interfaces:
- Serializable, Iterable, Collection, Set
public class EntitySet
- extends AbstractSet
- implements Set, Serializable
Representing a set of entities found in a single text file.
Each member a the set is an EntityDescriptor
- See Also:
- Serialized Form
Method Summary |
String |
getTextFileName()
Returns the name of the file where the entities in this set
were discovered |
Iterator |
iterator()
|
int |
size()
|
String |
toString()
Returns a string giving the file name on one line (preceded by
"==== FILE : " followed by each entity descriptor's string
representation, one-per-line. |
Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray |
EntitySet
public EntitySet(String fileName,
Document document,
AnnotationSet annotationSet)
- Constructs an entity set from a Gate annotation set
getTextFileName
public String getTextFileName()
- Returns the name of the file where the entities in this set
were discovered
toString
public String toString()
- Returns a string giving the file name on one line (preceded by
"==== FILE : " followed by each entity descriptor's string
representation, one-per-line.
- Overrides:
toString
in class AbstractCollection
size
public int size()
- Specified by:
size
in interface Collection
- Specified by:
size
in interface Set
- Specified by:
size
in class AbstractCollection
iterator
public Iterator iterator()
- Specified by:
iterator
in interface Iterable
- Specified by:
iterator
in interface Collection
- Specified by:
iterator
in interface Set
- Specified by:
iterator
in class AbstractCollection