Class FullTextEntitiesAnnotations


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class FullTextEntitiesAnnotations
    extends Object
    Annotation for entities based on the Tweet text.
    • Constructor Detail

      • FullTextEntitiesAnnotations

        public FullTextEntitiesAnnotations()
    • Method Detail

      • getEnd

        @Nonnull
        public Integer getEnd()
        Index (zero-based) at which position this entity ends. The index is inclusive. minimum: 0
        Returns:
        end
      • setEnd

        public void setEnd​(Integer end)
      • getStart

        @Nonnull
        public Integer getStart()
        Index (zero-based) at which position this entity starts. The index is inclusive. minimum: 0
        Returns:
        start
      • setStart

        public void setStart​(Integer start)
      • getNormalizedText

        @Nullable
        public String getNormalizedText()
        Text used to determine annotation.
        Returns:
        normalizedText
      • setNormalizedText

        public void setNormalizedText​(String normalizedText)
      • getProbability

        @Nullable
        public Double getProbability()
        Confidence factor for annotation type. minimum: 0 maximum: 1
        Returns:
        probability
      • setProbability

        public void setProbability​(Double probability)
      • getType

        @Nullable
        public String getType()
        Annotation type.
        Returns:
        type
      • setType

        public void setType​(String type)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to FullTextEntitiesAnnotations
      • fromJson

        public static FullTextEntitiesAnnotations fromJson​(String jsonString)
                                                    throws IOException
        Create an instance of FullTextEntitiesAnnotations given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of FullTextEntitiesAnnotations
        Throws:
        IOException - if the JSON string is invalid with respect to FullTextEntitiesAnnotations
      • toJson

        public String toJson()
        Convert an instance of FullTextEntitiesAnnotations to an JSON string
        Returns:
        JSON string