szte.io
Class ObesDocumentSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<Document>
              extended by szte.io.ObesDocumentSet
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Document>, java.util.Collection<Document>, java.util.Set<Document>, DocumentSet

public class ObesDocumentSet
extends java.util.HashSet<Document>
implements DocumentSet

The reader and container class for the Obesity 2008 challenge corpus. To obtain it please visit: https://www.i2b2.org/NLP/Obesity/

See Also:
Serialized Form

Constructor Summary
ObesDocumentSet()
           
 
Method Summary
 void readDocumentSet(java.lang.String file)
          The documents are in a directory (txt files) and the gold-standard labels are in an XML file.
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

ObesDocumentSet

public ObesDocumentSet()
Method Detail

readDocumentSet

public void readDocumentSet(java.lang.String file)
The documents are in a directory (txt files) and the gold-standard labels are in an XML file.

Specified by:
readDocumentSet in interface DocumentSet
Parameters:
file - consist of the path to the document (*.txt files will be read from this directory) and the label XML file path separated by a |