infomat.io.wordword
Class WordWordDirectoryReader

java.lang.Object
  extended by infomat.io.wordword.WordWordDirectoryReader

public class WordWordDirectoryReader
extends java.lang.Object

For reading a set of texts from a directory (and its subdirectories).


Field Summary
static AllFileFilter aff
           
private static int idCounter
           
private  IMatrix matrix
           
private  int objectID
           
private  java.util.HashMap<java.lang.String,IObject> stringWordObjectMap
           
static TextFileFilter tff
           
 
Constructor Summary
WordWordDirectoryReader()
           
 
Method Summary
private  void doOneFileContextWindow(java.io.File file, int pre, int post)
           
private  void doOneFileWholeFileContext(java.io.File file)
           
 IMatrix load(java.io.File file)
          Loads a IMatrix from a directory.
private  void printArray(java.lang.String[] arr)
           
private  void recurseFile(java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matrix

private IMatrix matrix

idCounter

private static int idCounter

tff

public static TextFileFilter tff

aff

public static AllFileFilter aff

objectID

private int objectID

stringWordObjectMap

private java.util.HashMap<java.lang.String,IObject> stringWordObjectMap
Constructor Detail

WordWordDirectoryReader

public WordWordDirectoryReader()
Method Detail

load

public IMatrix load(java.io.File file)
Loads a IMatrix from a directory.


recurseFile

private void recurseFile(java.io.File file)

doOneFileWholeFileContext

private void doOneFileWholeFileContext(java.io.File file)

printArray

private void printArray(java.lang.String[] arr)

doOneFileContextWindow

private void doOneFileContextWindow(java.io.File file,
                                    int pre,
                                    int post)