Class BaseNlpEntity
java.lang.Object
com.restfb.types.webhook.messaging.nlp.BaseNlpEntity
- Direct Known Subclasses:
NlpAmountOfMoney
,NlpBye
,NlpCustomWitAi
,NlpDatetime
,NlpDistance
,NlpDuration
,NlpEmail
,NlpGreetings
,NlpLocation
,NlpPhoneNumber
,NlpQuantity
,NlpReminder
,NlpSentiment
,NlpTemperature
,NlpUrl
,NlpVolume
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends BaseNlpEntity>
TgetBody()
body of this entity.getEnd()
end position of the entity in the messagegetStart()
start position of the entity in the messagegetValue()
boolean
returns if the object contains only a nlp entity or if the nlp object contains body, start and end fields, too.void
body of this entity.void
setConfidence
(Double confidence) void
end position of the entity in the messagevoid
void
start position of the entity in the messagevoid
-
Constructor Details
-
BaseNlpEntity
public BaseNlpEntity()
-
-
Method Details
-
isEntityOnly
returns if the object contains only a nlp entity or if the nlp object contains body, start and end fields, too.- Returns:
true
if the nlp object contains also body, start and end fields,false
otherwise
-
as
-
getConfidence
-
setConfidence
-
getValue
-
setValue
-
getEntity
-
setEntity
-
getBody
body of this entity. -
setBody
body of this entity. -
getStart
start position of the entity in the message -
setStart
start position of the entity in the message -
getEnd
end position of the entity in the message -
setEnd
end position of the entity in the message
-