public static Properties setPOSLemmaProperties ( final String model , final String lemmatizerModel , final String language , final String multiwords , final String dictag , final String allMorphology ) { final Properties annotateProperties = new Properties ( ) ; annotateProperties . setProperty ( "model" , model ) ; annotateProperties . setProperty ( "lemmatizerModel" , lemmatizerModel ) ; annotateProperties . setProperty ( "language" , language ) ; annotateProperties . setProperty ( "multiwords" , multiwords ) ; annotateProperties . setProperty ( "dictag" , dictag ) ; annotateProperties . setProperty ( "allMorphology" , allMorphology ) ; return annotateProperties ; }
Generate Properties object for POS tagging and Lemmatizing . Language model and lemmatizerModel are compulsory .