Package com.oracle.bmc.ailanguage.model
Class HierarchicalEntity.Builder
- java.lang.Object
-
- com.oracle.bmc.ailanguage.model.HierarchicalEntity.Builder
-
- Enclosing class:
- HierarchicalEntity
public static class HierarchicalEntity.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HierarchicalEntitybuild()HierarchicalEntity.Buildercopy(HierarchicalEntity model)HierarchicalEntity.Builderlength(Integer length)Length of entity textHierarchicalEntity.BuildermetaInfo(MetaInfo metaInfo)HierarchicalEntity.Builderoffset(Integer offset)The number of Unicode code points preceding this entity in the submitted text.HierarchicalEntity.Builderscore(Double score)Score or confidence for detected entity.HierarchicalEntity.BuildersubType(String subType)Sub-type of entity text like GPE for LOCATION typeHierarchicalEntity.Buildertext(String text)Entity text like name of person, location, and so on.HierarchicalEntity.Buildertype(String type)Type of entity text like PER, LOC.
-
-
-
Method Detail
-
metaInfo
public HierarchicalEntity.Builder metaInfo(MetaInfo metaInfo)
-
offset
public HierarchicalEntity.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 HierarchicalEntity.Builder length(Integer length)
Length of entity text- Parameters:
length- the value to set- Returns:
- this builder
-
text
public HierarchicalEntity.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 HierarchicalEntity.Builder type(String type)
Type of entity text like PER, LOC.- Parameters:
type- the value to set- Returns:
- this builder
-
subType
public HierarchicalEntity.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 HierarchicalEntity.Builder score(Double score)
Score or confidence for detected entity.- Parameters:
score- the value to set- Returns:
- this builder
-
build
public HierarchicalEntity build()
-
copy
public HierarchicalEntity.Builder copy(HierarchicalEntity model)
-
-