private void seqeval ( ) throws IOException { final String metric = this . parsedArguments . getString ( "metric" ) ; final String lang = this . parsedArguments . getString ( "language" ) ; final String model = this . parsedArguments . getString ( "model" ) ; final String testset = this . parsedArguments . getString ( "testset" ) ; final String corpusFormat = this . parsedArguments . getString ( "corpusFormat" ) ; final String netypes = this . parsedArguments . getString ( "types" ) ; final String clearFeatures = this . parsedArguments . getString ( "clearFeatures" ) ; final String unknownAccuracy = this . parsedArguments . getString ( "unknownAccuracy" ) ; final Properties props = setEvalProperties ( lang , model , testset , corpusFormat , netypes , clearFeatures , unknownAccuracy ) ; final SequenceLabelerEvaluate evaluator = new SequenceLabelerEvaluate ( props ) ; if ( metric . equalsIgnoreCase ( "accuracy" ) ) { evaluator . evaluateAccuracy ( ) ; } else { if ( this . parsedArguments . getString ( "evalReport" ) != null ) { if ( this . parsedArguments . getString ( "evalReport" ) . equalsIgnoreCase ( "brief" ) ) { evaluator . evaluate ( ) ; } else if ( this . parsedArguments . getString ( "evalReport" ) . equalsIgnoreCase ( "error" ) ) { evaluator . evalError ( ) ; } else if ( this . parsedArguments . getString ( "evalReport" ) . equalsIgnoreCase ( "detailed" ) ) { evaluator . detailEvaluate ( ) ; } } else { evaluator . detailEvaluate ( ) ; } } }
Main evaluation entry point for sequence labeling .