Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Entity |
build() |
Entity.Builder |
copy(Entity model) |
Entity.Builder |
isPii(Boolean isPii)
This flag is to indicate if it is PII entity or not.
|
Entity.Builder |
length(Integer length)
Length of entity text
|
Entity.Builder |
offset(Integer offset)
The number of Unicode code points preceding this entity in the submitted text.
|
Entity.Builder |
score(Double score)
Score or confidence of extracted entity type.
|
Entity.Builder |
text(String text)
Entity text like name of person, location, and so on.
|
Entity.Builder |
type(String type)
Type of entity text like PER, LOC, GPE and NOPE.
|
public Entity.Builder offset(Integer offset)
The number of Unicode code points preceding this entity in the submitted text.
offset
- the value to setpublic Entity.Builder length(Integer length)
Length of entity text
length
- the value to setpublic Entity.Builder text(String text)
Entity text like name of person, location, and so on.
text
- the value to setpublic Entity.Builder type(String type)
Type of entity text like PER, LOC, GPE and NOPE.
type
- the value to setpublic Entity.Builder isPii(Boolean isPii)
This flag is to indicate if it is PII entity or not.
isPii
- the value to setpublic Entity.Builder score(Double score)
Score or confidence of extracted entity type. Example: 0.9999856066867399
score
- the value to setpublic Entity build()
public Entity.Builder copy(Entity model)
Copyright © 2016–2024. All rights reserved.