@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 |
---|
RecastAnalyzer(String token)
creates an analyser for a trained bot on Recast
|
RecastAnalyzer(String token,
String uri)
allow additional parameter in case a new API is released
|
Modifier and Type | Method and Description |
---|---|
NlpResponse |
getRecastAnalysis(String content,
String language)
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 analysedlanguage
- the language of the contentShouldNotHappenException
- if an error occursCopyright © 2020 SAP SE. All rights reserved.