Class NerEntity


  • public class NerEntity
    extends Object
    • Constructor Detail

      • NerEntity

        public NerEntity​(int startIndex,
                         int endIndex)
        Class constructor
        Parameters:
        startIndex - the start index of the matching annotation
        endIndex - the end index of the matching annotation
    • Method Detail

      • addProperty

        public void addProperty​(String name,
                                String value)
        Add an additional property (property is a couple {name, value})
        Parameters:
        name - name
        value - 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)