@Beta public class NlpResponseWrapper extends Object
Be aware that this class is in Beta (as indicated by the annotation) and therefore subject to breaking changes.
Constructor and Description |
---|
NlpResponseWrapper(String text,
String language)
A Constructor to create a new nlp response wrapper given a text and the language of said text.
|
Modifier and Type | Method and Description |
---|---|
String |
getLanguage()
This getter returns the language of the given text which gets analysed
|
String |
getText()
This getter returns the text which gets analysed
|
void |
setLanguage(String language)
This setter changes the current laguage to the new given one.
|
void |
setText(String text)
This setter changes the current text to the new given one.
|
@Nullable public String getText()
@Nullable public String getLanguage()
public void setText(String text)
text
- the new textpublic void setLanguage(String language)
language
- the new languageCopyright © 2020 SAP SE. All rights reserved.