private Properties setAnnotateProperties ( String model , String language , String lexer , String dictTag , String dictPath , String clearFeatures ) { Properties annotateProperties = new Properties ( ) ; annotateProperties . setProperty ( MODEL , model ) ; annotateProperties . setProperty ( "language" , language ) ; annotateProperties . setProperty ( "ruleBasedOption" , lexer ) ; annotateProperties . setProperty ( "dictTag" , dictTag ) ; annotateProperties . setProperty ( "dictPath" , dictPath ) ; annotateProperties . setProperty ( "clearFeatures" , clearFeatures ) ; return annotateProperties ; }
Set a Properties object with the CLI parameters for NER annotation .