edu.stanford.nlp.dbm
Class LocusLinkDocument
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--java.util.ArrayList
|
+--edu.stanford.nlp.dbm.BasicDocument
|
+--edu.stanford.nlp.dbm.HTMLDocument
|
+--edu.stanford.nlp.dbm.LocusLinkDocument
- All Implemented Interfaces:
- Cloneable, Collection, Datum, Document, Featurizable, Labeled, List, RandomAccess, Serializable
- public class LocusLinkDocument
- extends HTMLDocument
A LocusLink document about a gene with LocusLink ID locusID
.
title()
returns the name of the gene, and
text()
returns relevant text
scraped from the LocusLink database.
- See Also:
- Serialized Form
Constructor Summary |
LocusLinkDocument(int locusID)
Constructs a LocusLink document for the gene with LocusLinkID
locusID |
LocusLinkDocument(URL url)
Constructs a LocusLink Document by setting the title and
text variables. |
Method Summary |
static void |
main(String[] args)
Returns document as a Collection of words. |
Methods inherited from class edu.stanford.nlp.dbm.BasicDocument |
addLabel, asFeatures, init, init, init, init, init, init, init, init, init, init, init, init, init, init, init, init, init, init, init, label, labels, originalText, presentableText, setLabel, setLabels, setTitle, title |
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
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 |
state
protected String state
LocusLinkDocument
public LocusLinkDocument(int locusID)
throws IOException
- Constructs a LocusLink document for the gene with LocusLinkID
locusID
LocusLinkDocument
public LocusLinkDocument(URL url)
throws IOException
- Constructs a LocusLink Document by setting the
title
and
text
variables.
main
public static void main(String[] args)
- Returns document as a Collection of words.
Stanford NLP Group