public String tag ( final String word , final String posTag ) { final List < WordData > wdList = this . dictLookup . lookup ( word . toLowerCase ( ) ) ; String newPosTag = null ; for ( final WordData wd : wdList ) { newPosTag = wd . getTag ( ) . toString ( ) ; } if ( newPosTag == null ) { newPosTag = posTag ; } return newPosTag ; }
Get the postag for a surface form from a FSA morfologik generated dictionary .