@Beta public class RecastAnalyzer extends Object
Be aware that this class is in Beta (as indicated by the annotation) and therefore subject to breaking changes.
|Constructor and Description|
creates an analyser for a trained bot on Recast
allow additional parameter in case a new API is released
|Modifier and Type||Method and Description|
gets the analysis of the given sentence and returns an object with the parsed JSON
public RecastAnalyzer(String token)
token- String representation of the token
@Nullable public NlpResponse getRecastAnalysis(String content, String language) throws ShouldNotHappenException
content- the sentence to be analysed
language- the language of the content
ShouldNotHappenException- if an error occurs
Copyright © 2019 SAP SE. All rights reserved.