Class SyntaxDiagnoseImpl

java.lang.Object
  |
  +--SyntaxDiagnoseImpl
All Implemented Interfaces:
SyntaxDiagnose

public class SyntaxDiagnoseImpl
extends java.lang.Object
implements SyntaxDiagnose


Constructor Summary
SyntaxDiagnoseImpl()
           
 
Method Summary
 void analyze(java.lang.String sentence)
          analyses the german natural language user input for grammatical correctnes
 Explanation explanation()
          gives a explanations for incorrect sentences
 boolean isCorrect()
          the natural language sentence input by the user was correct
 double quality()
          evaluation of the quality of an input sentence
 java.util.TreeMap syntaxTree()
          returns syntax tree generated by the CDG-Parser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntaxDiagnoseImpl

public SyntaxDiagnoseImpl()
Method Detail

analyze

public void analyze(java.lang.String sentence)
analyses the german natural language user input for grammatical correctnes
Specified by:
analyze in interface SyntaxDiagnose
Parameters:
sentence - the sentence input by user

isCorrect

public boolean isCorrect()
the natural language sentence input by the user was correct
Specified by:
isCorrect in interface SyntaxDiagnose
Returns:
the centence was correct

explanation

public Explanation explanation()
gives a explanations for incorrect sentences
Specified by:
explanation in interface SyntaxDiagnose
Returns:
explanations of the error

syntaxTree

public java.util.TreeMap syntaxTree()
returns syntax tree generated by the CDG-Parser
Specified by:
syntaxTree in interface SyntaxDiagnose
Returns:
the syntax tree generated by the CDG-Parser

quality

public double quality()
evaluation of the quality of an input sentence
Specified by:
quality in interface SyntaxDiagnose
Returns:
quality of input sentence - 0.0 if sentence was correct