public static class HierarchicalEntity.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HierarchicalEntity |
build() |
HierarchicalEntity.Builder |
copy(HierarchicalEntity model) |
HierarchicalEntity.Builder |
length(Integer length)
Length of entity text
|
HierarchicalEntity.Builder |
offset(Integer offset)
The number of Unicode code points preceding this entity in the submitted text.
|
HierarchicalEntity.Builder |
score(Double score)
Score or confidence for detected entity.
|
HierarchicalEntity.Builder |
subType(String subType)
Sub-type of entity text like GPE for LOCATION type
|
HierarchicalEntity.Builder |
text(String text)
Entity text like name of person, location, and so on.
|
HierarchicalEntity.Builder |
type(String type)
Type of entity text like PER, LOC.
|
public HierarchicalEntity.Builder offset(Integer offset)
The number of Unicode code points preceding this entity in the submitted text.
offset
- the value to setpublic HierarchicalEntity.Builder length(Integer length)
Length of entity text
length
- the value to setpublic HierarchicalEntity.Builder text(String text)
Entity text like name of person, location, and so on.
text
- the value to setpublic HierarchicalEntity.Builder type(String type)
Type of entity text like PER, LOC.
type
- the value to setpublic HierarchicalEntity.Builder subType(String subType)
Sub-type of entity text like GPE for LOCATION type
subType
- the value to setpublic HierarchicalEntity.Builder score(Double score)
Score or confidence for detected entity.
score
- the value to setpublic HierarchicalEntity build()
public HierarchicalEntity.Builder copy(HierarchicalEntity model)
Copyright © 2016–2024. All rights reserved.