public String convertToConLLTypes ( String neType ) { String conllType = null ; if ( neType . equalsIgnoreCase ( "PERSON" ) || neType . equalsIgnoreCase ( "ORGANIZATION" ) || neType . equalsIgnoreCase ( "LOCATION" ) || neType . length ( ) == 3 ) { conllType = neType . substring ( 0 , 3 ) ; } else { conllType = neType ; } return conllType ; }
Convert Entity class annotation to CoNLL formats .