@ Override public String setHighlightingColor ( SNode node ) { String color = null ; SFeature featMatched = node . getFeature ( ANNIS_NS , FEAT_MATCHEDNODE ) ; Long matchRaw = featMatched == null ? null : featMatched . getValue_SNUMERIC ( ) ; // token is matched if ( matchRaw != null ) { color = MatchedNodeColors . getHTMLColorByMatch ( matchRaw ) ; return color ; } return color ; }
Implements the getHighlightingColor method of the org . corpus_tools . salt . util . StyleImporter interface .