Constructor and Description |
---|
SimpleHTMLFormatter()
Default constructor uses HTML: <B> tags to markup terms.
|
SimpleHTMLFormatter(String preTag,
String postTag) |
Modifier and Type | Method and Description |
---|---|
String |
highlightTerm(String originalText,
TokenGroup tokenGroup) |
public SimpleHTMLFormatter()
public String highlightTerm(String originalText, TokenGroup tokenGroup)
highlightTerm
in interface Formatter
originalText
- The section of text being considered for markuptokenGroup
- contains one or several overlapping Tokens along with
their scores and positions.Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.