public class NerAnnotationData extends Object
| Constructor and Description |
|---|
NerAnnotationData(String name)
Class constructor; require the name of the annotation
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNerEntity(NerEntity entity)
add a new NerEntity to the collection
|
String |
getName() |
ArrayList<NerEntity> |
getNerEntities() |
void |
setName(String name) |
void |
setNerEntities(ArrayList<NerEntity> nerEntities) |
com.google.gson.JsonObject |
toJson()
build the proper Json object.
|
public NerAnnotationData(String name)
name - public void addNerEntity(NerEntity entity)
entity - public com.google.gson.JsonObject toJson()
public String getName()
public void setName(String name)
Copyright © 2019. All Rights Reserved.