edu.stanford.nlp.dbm
Class USPDIDocument

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
All Implemented Interfaces:
Cloneable, Collection, Datum, Document, Featurizable, Labeled, List, RandomAccess, Serializable

public class USPDIDocument
extends HTMLDocument

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.

See Also:
Serialized Form

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

USPDIDocument

public USPDIDocument(String drugName)
              throws IOException
Method Detail

title

public String title()
Description copied from class: BasicDocument
Returns the title of this document. The title may be empty ("") but will never be null.

Specified by:
title in interface Document
Overrides:
title in class BasicDocument


Stanford NLP Group