public class NerEntity extends Object
| Constructor and Description |
|---|
NerEntity(int startIndex,
int endIndex)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String name,
String value)
Add an additional property (property is a couple {name, value})
|
int |
getEndIndex() |
HashMap<String,String> |
getProperties() |
int |
getStartIndex() |
void |
setEndIndex(int endIndex) |
void |
setProperties(HashMap<String,String> properties) |
void |
setStartIndex(int startIndex) |
com.google.gson.JsonObject |
toJson()
Build a proper JsonObject
|
public NerEntity(int startIndex,
int endIndex)
startIndex - the start index of the matching annotationendIndex - the end index of the matching annotationpublic void addProperty(String name, String value)
name - namevalue - valuepublic com.google.gson.JsonObject toJson()
public int getStartIndex()
public void setStartIndex(int startIndex)
public int getEndIndex()
public void setEndIndex(int endIndex)
Copyright © 2021. All Rights Reserved.