Class HealthEntity.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • offset

        public HealthEntity.Builder offset​(Integer offset)
        The number of Unicode code points preceding this entity in the submitted text.
        Parameters:
        offset - the value to set
        Returns:
        this builder
      • length

        public HealthEntity.Builder length​(Integer length)
        Length of entity text
        Parameters:
        length - the value to set
        Returns:
        this builder
      • text

        public HealthEntity.Builder text​(String text)
        Entity text like name of person, location, and so on.
        Parameters:
        text - the value to set
        Returns:
        this builder
      • type

        public HealthEntity.Builder type​(String type)
        Type of entity text like PER, LOC.
        Parameters:
        type - the value to set
        Returns:
        this builder
      • subType

        public HealthEntity.Builder subType​(String subType)
        Sub-type of entity text like GPE for LOCATION type
        Parameters:
        subType - the value to set
        Returns:
        this builder
      • score

        public HealthEntity.Builder score​(Double score)
        Score or confidence for detected entity.
        Parameters:
        score - the value to set
        Returns:
        this builder
      • category

        public HealthEntity.Builder category​(String category)
        Entity category e.g, MEDICAL_CONDITION, MEDICATION, GENERAL, ANATOMY
        Parameters:
        category - the value to set
        Returns:
        this builder
      • id

        public HealthEntity.Builder id​(String id)
        Unique id of the entity
        Parameters:
        id - the value to set
        Returns:
        this builder
      • assertions

        public HealthEntity.Builder assertions​(List<AssertionDetails> assertions)
        list of all assertions associated with this entity.
        Parameters:
        assertions - the value to set
        Returns:
        this builder
      • matchedConcepts

        public HealthEntity.Builder matchedConcepts​(List<MelConcept> matchedConcepts)
        This contains the list of matched concepts which are ranked by the relevant score with the input text
        Parameters:
        matchedConcepts - the value to set
        Returns:
        this builder