public static class ResolvedEntity.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ResolvedEntity |
build() |
ResolvedEntity.Builder |
copy(ResolvedEntity model) |
ResolvedEntity.Builder |
id(String id)
id of the resolved entity in input
|
ResolvedEntity.Builder |
length(Integer length)
length of resolved entity in input
|
ResolvedEntity.Builder |
offset(Integer offset)
offset of resolved entity in input
|
ResolvedEntity.Builder |
text(String text)
Entity text like name of person, location, and so on.
|
ResolvedEntity.Builder |
type(String type)
Type of entity text like PER, LOC.
|
ResolvedEntity.Builder |
value(Map<String,String> value)
key and value pair for resolved entities.
|
public ResolvedEntity.Builder id(String id)
id of the resolved entity in input
id
- the value to setpublic ResolvedEntity.Builder offset(Integer offset)
offset of resolved entity in input
offset
- the value to setpublic ResolvedEntity.Builder length(Integer length)
length of resolved entity in input
length
- the value to setpublic ResolvedEntity.Builder text(String text)
Entity text like name of person, location, and so on.
text
- the value to setpublic ResolvedEntity.Builder type(String type)
Type of entity text like PER, LOC.
type
- the value to setpublic ResolvedEntity.Builder value(Map<String,String> value)
key and value pair for resolved entities. keys can be specific for each type of resolved entity. Values can be instances of resolvedEntity, arrays of resolvedEntities, primitives, or custom JSON.
value
- the value to setpublic ResolvedEntity build()
public ResolvedEntity.Builder copy(ResolvedEntity model)
Copyright © 2016–2024. All rights reserved.