Util
Class WindowedDoc

java.lang.Object
  extended by Util.WindowedDoc

public class WindowedDoc
extends java.lang.Object

Implements methods needed by a Textpresso document to prepare it for clustering.

Author:
davidc

Constructor Summary
WindowedDoc(java.lang.String wbid)
           
 
Method Summary
 void checkSourceExists()
           
 java.lang.String[][] getFixedWordSentences()
           
 int[][] getIdxSentences(VectorManager vm)
           
 java.lang.String[][] getSentences()
           
 java.util.List<java.lang.String>[] getWindows()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowedDoc

public WindowedDoc(java.lang.String wbid)
Method Detail

getWindows

public java.util.List<java.lang.String>[] getWindows()
                                              throws java.io.FileNotFoundException,
                                                     java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

getIdxSentences

public int[][] getIdxSentences(VectorManager vm)

getSentences

public java.lang.String[][] getSentences()
                                  throws java.io.FileNotFoundException,
                                         java.io.IOException
Returns:
Fixed sentences
Throws:
java.io.IOException
java.io.FileNotFoundException

getFixedWordSentences

public java.lang.String[][] getFixedWordSentences()
                                           throws java.io.FileNotFoundException,
                                                  java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

checkSourceExists

public void checkSourceExists()
                       throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException