|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
tc.TCCorpusLoader
all the classes which load corpora have to extend this class
| Field Summary | |
(package private) TCCorpus |
corpus
the corpus to be returned |
(package private) java.util.ArrayList |
labels
contains the labels for the examined document |
(package private) int |
numberOfTestDocumentsWithLabel
the number of test documents which belong to at least one known category |
(package private) int |
stemmerMethod
the method of the stemmer (0: no stemmer; 1: porter; 2: lancaster) |
(package private) java.lang.String |
stopWordsString
a string holding all the stop words |
(package private) java.util.ArrayList |
testSet
the test set which will be generated for evaluation |
(package private) boolean |
useStopWordRemoval
indicates if a stop word removal should be applied |
| Constructor Summary | |
TCCorpusLoader()
|
|
| Method Summary | |
int |
getNumberOfTestDocumentsWithLabel()
|
java.util.ArrayList |
getTestSet()
|
TCCorpus |
loadCorpus()
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.util.ArrayList labels
java.util.ArrayList testSet
TCCorpus corpus
int stemmerMethod
boolean useStopWordRemoval
java.lang.String stopWordsString
int numberOfTestDocumentsWithLabel
| Constructor Detail |
public TCCorpusLoader()
| Method Detail |
public java.util.ArrayList getTestSet()
public int getNumberOfTestDocumentsWithLabel()
public TCCorpus loadCorpus()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||