public void initialize(ResourceManager rm){
  this.useStanford=rm.getBoolean(LemmatizerConfigurator.USE_STNFRD_CONVENTIONS.key);
  wnLemmaReader=new WordnetLemmaReader(rm.getString(LemmatizerConfigurator.WN_PATH.key));
  verbLemmaFile=rm.getString(LemmatizerConfigurator.VERB_LEMMA_FILE.key);
  exceptionsFile=rm.getString(LemmatizerConfigurator.EXCEPTIONS_FILE.key);
  loadVerbMap();
  loadExceptionMap();
  contractions=new HashMap<>();
  contractions.put("'d","have");
  contractions.put("'ll","will");
  contractions.put("'s","'s");
  contractions.put("'re","be");
  contractions.put("'m","be");
  contractions.put("'ve","have");
  toStanford=new HashMap<>();
  toStanford.put("her","she");
  toStanford.put("him","he");
  toStanford.put("is","be");
  toStanford.put("their","they");
  toStanford.put("them","they");
  toStanford.put("me","i");
  toStanford.put("an","a");
}

public void initialize ( ResourceManager rm ) { this . useStanford = rm . getBoolean ( LemmatizerConfigurator . USE_STNFRD_CONVENTIONS . key ) ; wnLemmaReader = new WordnetLemmaReader ( rm . getString ( LemmatizerConfigurator . WN_PATH . key ) ) ; verbLemmaFile = rm . getString ( LemmatizerConfigurator . VERB_LEMMA_FILE . key ) ; exceptionsFile = rm . getString ( LemmatizerConfigurator . EXCEPTIONS_FILE . key ) ; loadVerbMap ( ) ; loadExceptionMap ( ) ; contractions = new HashMap < > ( ) ; contractions . put ( "'d" , "have" ) ; contractions . put ( "'ll" , "will" ) ; contractions . put ( "'s" , "'s" ) ; contractions . put ( "'re" , "be" ) ; contractions . put ( "'m" , "be" ) ; contractions . put ( "'ve" , "have" ) ; toStanford = new HashMap < > ( ) ; toStanford . put ( "her" , "she" ) ; toStanford . put ( "him" , "he" ) ; toStanford . put ( "is" , "be" ) ; toStanford . put ( "their" , "they" ) ; toStanford . put ( "them" , "they" ) ; toStanford . put ( "me" , "i" ) ; toStanford . put ( "an" , "a" ) ; }
loads resources used by lemmatizer . by default , is called by annotator superclass with resourcemanager passed in at construction time .
