tml.vectorspace.operations
Class GrammarChecker

java.lang.Object
  extended by tml.vectorspace.operations.AbstractOperation<GrammarCheckerResult>
      extended by tml.vectorspace.operations.GrammarChecker
All Implemented Interfaces:
Operation<GrammarCheckerResult>

public class GrammarChecker
extends AbstractOperation<GrammarCheckerResult>

This operation checks the grammar of all documents in a Corpus. Grammar checking is performed using Daniel Naber's rule-based LanguageTool.

Author:
Stephen O'Rourke

Constructor Summary
GrammarChecker()
           
 
Method Summary
 java.lang.Object[][] getInnerData()
           
 java.lang.Object[][] getResultsTable()
           
 java.lang.Object[] getResultsTableHeader()
           
 void start()
          Starts the operation execution
 
Methods inherited from class tml.vectorspace.operations.AbstractOperation
addOperationListener, getBackgroundKnowledgeCorpus, getCorpus, getMaxResults, getName, getRepository, getResults, getResultsCSVString, getResultsNumber, getResultsString, getResultsStringTable, getResultsXML, getTimeElapsed, printResults, printResultsCSV, printResultsMatlab, removeOperationListener, setBackgroundKnowledgeCorpus, setCorpus, setMaxResults, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GrammarChecker

public GrammarChecker()
Method Detail

getInnerData

public java.lang.Object[][] getInnerData()

getResultsTable

public java.lang.Object[][] getResultsTable()
Specified by:
getResultsTable in interface Operation<GrammarCheckerResult>
Overrides:
getResultsTable in class AbstractOperation<GrammarCheckerResult>
Returns:
the table with the results

getResultsTableHeader

public java.lang.Object[] getResultsTableHeader()
Specified by:
getResultsTableHeader in interface Operation<GrammarCheckerResult>
Overrides:
getResultsTableHeader in class AbstractOperation<GrammarCheckerResult>
Returns:
the headers of the results table

start

public void start()
           throws java.lang.Exception
Description copied from interface: Operation
Starts the operation execution

Specified by:
start in interface Operation<GrammarCheckerResult>
Overrides:
start in class AbstractOperation<GrammarCheckerResult>
Throws:
java.lang.Exception