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
Constructors -
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()booleanreturns if the object contains only a nlp entity or if the nlp object contains body, start and end fields, too.voidbody of this entity.voidsetConfidence(Double confidence) voidend position of the entity in the messagevoidvoidstart 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:
trueif the nlp object contains also body, start and end fields,falseotherwise
-
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
-