|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.USPDIDocument
A USPDIDocument is the relevant contents of a query on USP DI Drug Database
for the drug given by drugName
. The title()
method returns the drug name, and the text()
method
returns relevant text scraped from the USP DI Drug Database.
Field Summary |
Fields inherited from class edu.stanford.nlp.dbm.HTMLDocument |
parsedText |
Fields inherited from class edu.stanford.nlp.dbm.BasicDocument |
labels, originalText, title |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
USPDIDocument(String drugName)
|
Method Summary | |
String |
title()
Returns the title of this document. |
Methods inherited from class edu.stanford.nlp.dbm.HTMLDocument |
getParsedText, parse |
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, main, originalText, presentableText, setLabel, setLabels, setTitle |
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 class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
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 |
Constructor Detail |
public USPDIDocument(String drugName) throws IOException
Method Detail |
public String title()
BasicDocument
title
in interface Document
title
in class BasicDocument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |