tc
Class TCCorpusLoaderSelfmade

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended bytc.TCCorpusLoader
          extended bytc.TCCorpusLoaderSelfmade
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class TCCorpusLoaderSelfmade
extends TCCorpusLoader

class to load the self-made corpus


Field Summary
 
Fields inherited from class tc.TCCorpusLoader
corpus, labels, numberOfTestDocumentsWithLabel, stemmerMethod, stopWordsString, testSet, useStopWordRemoval
 
Constructor Summary
(package private) TCCorpusLoaderSelfmade(boolean useSWR, int stemMethod, java.lang.String sws)
           
 
Method Summary
 TCCorpus loadCorpus()
          loads and returns the selfmade corpus
 void loadTestSet()
           
 
Methods inherited from class tc.TCCorpusLoader
getNumberOfTestDocumentsWithLabel, getTestSet
 
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
 

Constructor Detail

TCCorpusLoaderSelfmade

TCCorpusLoaderSelfmade(boolean useSWR,
                       int stemMethod,
                       java.lang.String sws)
Method Detail

loadCorpus

public TCCorpus loadCorpus()
loads and returns the selfmade corpus

Overrides:
loadCorpus in class TCCorpusLoader
Returns:
the loaded corpus

loadTestSet

public void loadTestSet()