protected String getLabel ( ArgumentComponent argumentComponent , Token token ) { StringBuilder sb = new StringBuilder ( argumentComponent . getClass ( ) . getSimpleName ( ) ) ; if ( "BIO" . equals ( this . codingGranularity ) ) { // Does the component begin here? if ( argumentComponent . getBegin ( ) == token . getBegin ( ) ) { sb . append ( B_SUFFIX ) ; } else { sb . append ( I_SUFFIX ) ; } } else { sb . append ( I_SUFFIX ) ; } return sb . toString ( ) ; }
Returns a label for the annotated token