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