infomat.vectorspace
Class CorpusIO

java.lang.Object
  extended by infomat.vectorspace.CorpusIO

public class CorpusIO
extends java.lang.Object

For loading and saving a Corpus. This class is for my personal use. It does not correspond to anything in this Infomat-package. Not the same as in the clustering package!


Nested Class Summary
private  class CorpusIO.CorpusHandler
          Exports the corpus in XML format The file is saved in compressed .zip-format.
 
Field Summary
private  boolean readFile
           
 
Constructor Summary
CorpusIO()
           
 
Method Summary
 IMatrix load(java.io.File file)
          Loads a corpus from file in XML format
private  IMatrix load(org.xml.sax.InputSource source)
           
 IMatrix loadCompressed(java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

readFile

private boolean readFile
Constructor Detail

CorpusIO

public CorpusIO()
Method Detail

load

public IMatrix load(java.io.File file)
Loads a corpus from file in XML format


loadCompressed

public IMatrix loadCompressed(java.io.File file)

load

private IMatrix load(org.xml.sax.InputSource source)