public final void eval ( ) throws IOException { final String component = this . parsedArguments . getString ( "component" ) ; final String testFile = this . parsedArguments . getString ( "testSet" ) ; final String model = this . parsedArguments . getString ( "model" ) ; Evaluate evaluator = null ; if ( component . equalsIgnoreCase ( "pos" ) ) { evaluator = new POSEvaluate ( testFile , model ) ; } else { evaluator = new LemmaEvaluate ( testFile , model ) ; } if ( this . parsedArguments . getString ( "evalReport" ) != null ) { if ( this . parsedArguments . getString ( "evalReport" ) . equalsIgnoreCase ( "detailed" ) ) { evaluator . detailEvaluate ( ) ; } else if ( this . parsedArguments . getString ( "evalReport" ) . equalsIgnoreCase ( "error" ) ) { evaluator . evalError ( ) ; } else if ( this . parsedArguments . getString ( "evalReport" ) . equalsIgnoreCase ( "brief" ) ) { evaluator . evaluate ( ) ; } } else { evaluator . evaluate ( ) ; } }
Main entry point for evaluation .