|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Corpus
Corpora are lists of Document. TIPSTER equivalent: Collection.
| Field Summary |
|---|
| Fields inherited from interface gate.SimpleCorpus |
|---|
CORPUS_DOCLIST_PARAMETER_NAME, CORPUS_NAME_PARAMETER_NAME |
| Method Summary | |
|---|---|
void |
addCorpusListener(CorpusListener l)
Registers a new CorpusListener with this corpus. |
boolean |
isDocumentLoaded(int index)
This method returns true when the document is already loaded in memory. |
void |
removeCorpusListener(CorpusListener l)
Removes one of the listeners registered with this corpus. |
void |
unloadDocument(Document doc)
Unloads the document from memory. |
| Methods inherited from interface gate.SimpleCorpus |
|---|
getDocumentName, getDocumentNames, populate |
| Methods inherited from interface gate.LanguageResource |
|---|
getDataStore, getLRPersistenceId, getParent, isModified, setDataStore, setLRPersistenceId, setParent, sync |
| Methods inherited from interface gate.Resource |
|---|
cleanup, getParameterValue, init, setParameterValue, setParameterValues |
| Methods inherited from interface gate.util.FeatureBearer |
|---|
getFeatures, setFeatures |
| Methods inherited from interface gate.util.NameBearer |
|---|
getName, setName |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Method Detail |
|---|
void unloadDocument(Document doc)
Transient Corpus objects do nothing, because there would be no way to get the document back again afterwards.
doc - Document to be unloaded from memory.boolean isDocumentLoaded(int index)
void removeCorpusListener(CorpusListener l)
l - the listener to be removed.void addCorpusListener(CorpusListener l)
CorpusListener with this corpus.
l - the listener to be added.
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||