Class NerEntity
- java.lang.Object
-
- org.gcube.data.analysis.nlphub.legacy.NerEntity
-
public class NerEntity extends Object
-
-
Constructor Summary
Constructors Constructor Description NerEntity(int startIndex, int endIndex)Class constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(String name, String value)Add an additional property (property is a couple {name, value})intgetEndIndex()HashMap<String,String>getProperties()intgetStartIndex()voidsetEndIndex(int endIndex)voidsetProperties(HashMap<String,String> properties)voidsetStartIndex(int startIndex)com.google.gson.JsonObjecttoJson()Build a proper JsonObject
-
-
-
Method Detail
-
addProperty
public void addProperty(String name, String value)
Add an additional property (property is a couple {name, value})- Parameters:
name- namevalue- value
-
toJson
public com.google.gson.JsonObject toJson()
Build a proper JsonObject- Returns:
- JsonObject
-
getStartIndex
public int getStartIndex()
-
setStartIndex
public void setStartIndex(int startIndex)
-
getEndIndex
public int getEndIndex()
-
setEndIndex
public void setEndIndex(int endIndex)
-
-