public static class HealthEntity.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HealthEntity.Builder |
assertions(List<AssertionDetails> assertions)
list of all assertions associated with this entity.
|
HealthEntity |
build() |
HealthEntity.Builder |
category(String category)
Entity category e.g, MEDICAL_CONDITION, MEDICATION, GENERAL, ANATOMY
|
HealthEntity.Builder |
copy(HealthEntity model) |
HealthEntity.Builder |
id(String id)
Unique id of the entity
|
HealthEntity.Builder |
length(Integer length)
Length of entity text
|
HealthEntity.Builder |
matchedConcepts(List<MelConcept> matchedConcepts)
This contains the list of matched concepts which are ranked by the relevant score with
the input text
|
HealthEntity.Builder |
offset(Integer offset)
The number of Unicode code points preceding this entity in the submitted text.
|
HealthEntity.Builder |
score(Double score)
Score or confidence for detected entity.
|
HealthEntity.Builder |
subType(String subType)
Sub-type of entity text like GPE for LOCATION type
|
HealthEntity.Builder |
text(String text)
Entity text like name of person, location, and so on.
|
HealthEntity.Builder |
type(String type)
Type of entity text like PER, LOC.
|
public HealthEntity.Builder offset(Integer offset)
The number of Unicode code points preceding this entity in the submitted text.
offset
- the value to setpublic HealthEntity.Builder length(Integer length)
Length of entity text
length
- the value to setpublic HealthEntity.Builder text(String text)
Entity text like name of person, location, and so on.
text
- the value to setpublic HealthEntity.Builder type(String type)
Type of entity text like PER, LOC.
type
- the value to setpublic HealthEntity.Builder subType(String subType)
Sub-type of entity text like GPE for LOCATION type
subType
- the value to setpublic HealthEntity.Builder score(Double score)
Score or confidence for detected entity.
score
- the value to setpublic HealthEntity.Builder category(String category)
Entity category e.g, MEDICAL_CONDITION, MEDICATION, GENERAL, ANATOMY
category
- the value to setpublic HealthEntity.Builder id(String id)
Unique id of the entity
id
- the value to setpublic HealthEntity.Builder assertions(List<AssertionDetails> assertions)
list of all assertions associated with this entity.
assertions
- the value to setpublic HealthEntity.Builder matchedConcepts(List<MelConcept> matchedConcepts)
This contains the list of matched concepts which are ranked by the relevant score with the input text
matchedConcepts
- the value to setpublic HealthEntity build()
public HealthEntity.Builder copy(HealthEntity model)
Copyright © 2016–2024. All rights reserved.