infomat.io.textword
Class TokenFileTextWordIO
java.lang.Object
infomat.io.textword.TokenFileTextWordIO
public class TokenFileTextWordIO
- extends java.lang.Object
For loading a token file into a matrix with the texts as rows
and words as columns. Do not use in combination with IObjectGroupingIO.
The later shares id:s with CorpusIO that are not present in the TokenFiles.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
matrix
private IMatrix matrix
twmc
private TextWordIMatrixConstructor twmc
TokenFileTextWordIO
public TokenFileTextWordIO()
TokenFileTextWordIO
public TokenFileTextWordIO(TextWordIMatrixConstructor twmc)
load
public IMatrix load(java.io.File file)
- Loads a IMatrix from file in XML format
loadCompressed
public IMatrix loadCompressed(java.io.File file)
load
private IMatrix load(org.xml.sax.InputSource source)