Klasse NlpResult
java.lang.Object
com.restfb.types.webhook.messaging.NlpResult
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
convertRawEntites
(JsonMapper mapper) returns the complete list of all found entities.<T extends BaseNlpEntity>
List<T>getEntities
(Class<T> clazz) returns a subset of the found entities.returns the complete list of all found errorsboolean
checks if the returned JSON contains the error field
-
Konstruktordetails
-
NlpResult
public NlpResult()
-
-
Methodendetails
-
convertRawEntites
-
getEntities
returns the complete list of all found entities.- Gibt zurück:
- the complete list of all found entities.
-
getErrors
returns the complete list of all found errors- Gibt zurück:
- the complete list of all found errors
-
hasErrors
checks if the returned JSON contains the error field- Gibt zurück:
true
if the NLP result found errors,false
otherwise
-
getEntities
returns a subset of the found entities. Only entities that are of typeT
are returned. T needs to extend theBaseNlpEntity
.- Parameter:
clazz
- the filter class- Gibt zurück:
- List of entites, only the filtered elements are returned.
-