public static class RelationEntity.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RelationEntity |
build() |
RelationEntity.Builder |
copy(RelationEntity model) |
RelationEntity.Builder |
id(String id)
id of the relation
|
RelationEntity.Builder |
objectId(String objectId)
Object entity of the relation.
|
RelationEntity.Builder |
score(Double score)
Score or confidence for detected entity.
|
RelationEntity.Builder |
subjectId(String subjectId)
Subject entity of the relation.
|
RelationEntity.Builder |
type(String type)
Type of relation between subject entity and object entity.
|
public RelationEntity.Builder id(String id)
id of the relation
id
- the value to setpublic RelationEntity.Builder subjectId(String subjectId)
Subject entity of the relation. eg,MEDICINE_NAME, EXAMINATION
subjectId
- the value to setpublic RelationEntity.Builder objectId(String objectId)
Object entity of the relation. eg, MEDICINE_DOSAGE, MEDICINE_DURATION, MEASUREMENT
objectId
- the value to setpublic RelationEntity.Builder type(String type)
Type of relation between subject entity and object entity. eg,EXAMINATION_MEASUREMENT, FREQUENCY, DOSAGE
type
- the value to setpublic RelationEntity.Builder score(Double score)
Score or confidence for detected entity.
score
- the value to setpublic RelationEntity build()
public RelationEntity.Builder copy(RelationEntity model)
Copyright © 2016–2024. All rights reserved.