public class NameRecognizerResult extends BaseResults
Modifier and Type | Field and Description |
---|---|
java.lang.String |
corpusConfig
Corpus configuration.
|
java.util.Set<java.lang.String> |
personNames
Person names.
|
java.util.Set<java.lang.String> |
placeNames
Place names.
|
java.lang.String |
text
Text to process.
|
Constructor and Description |
---|
NameRecognizerResult()
Create empty name recognizer results.
|
NameRecognizerResult(java.lang.String text,
java.lang.String corpusConfig,
java.util.Set<java.lang.String> personNames,
java.util.Set<java.lang.String> placeNames)
Create populated name recognizer results.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toHTML()
Return HTML version of class entry values.
|
java.lang.String |
toString()
Generate string representation.
|
append, appendLn, stringFromHTML, tabularDataBaseResults
public java.lang.String text
public java.lang.String corpusConfig
@XStreamConverter(value=PersonNamesSetConverter.class) public java.util.Set<java.lang.String> personNames
@XStreamConverter(value=PlaceNamesSetConverter.class) public java.util.Set<java.lang.String> placeNames
public NameRecognizerResult()
public NameRecognizerResult(java.lang.String text, java.lang.String corpusConfig, java.util.Set<java.lang.String> personNames, java.util.Set<java.lang.String> placeNames)
text
- Text to tag.corpusConfig
- Corpus configuration.personNames
- Person names.placeNames
- Place names.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toHTML()
toHTML
in class BaseResults