Package com.oracle.bmc.ailanguage.model
Class HealthEntity.Builder
- java.lang.Object
-
- com.oracle.bmc.ailanguage.model.HealthEntity.Builder
-
- Enclosing class:
- HealthEntity
public static class HealthEntity.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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, ANATOMYHealthEntity.Builder
copy(HealthEntity model)
HealthEntity.Builder
id(String id)
Unique id of the entityHealthEntity.Builder
length(Integer length)
Length of entity textHealthEntity.Builder
matchedConcepts(List<MelConcept> matchedConcepts)
This contains the list of matched concepts which are ranked by the relevant score with the input textHealthEntity.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 typeHealthEntity.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.
-
-
-
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
-
build
public HealthEntity build()
-
copy
public HealthEntity.Builder copy(HealthEntity model)
-
-