|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfomat.vectorspace.CorpusIO
public class CorpusIO
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 |
---|
private boolean readFile
Constructor Detail |
---|
public CorpusIO()
Method Detail |
---|
public IMatrix load(java.io.File file)
public IMatrix loadCompressed(java.io.File file)
private IMatrix load(org.xml.sax.InputSource source)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |