public interface NCEmbeddedResult
Modifier and Type | Method and Description |
---|---|
String |
getBody()
Gets optional result body.
|
int |
getErrorCode()
Gets optional error code.
|
String |
getErrorMessage()
Gets optional error message.
|
String |
getLogHolder()
Gets request processing log holder as JSON string.
|
String |
getModelId()
Gets the ID of the model that produced this result.
|
String |
getOriginalText()
Gets original text of the request that produced this result.
|
String |
getProbeId()
Gets ID of the probe this result was generated by.
|
String |
getServerRequestId()
Gets ID of the request that produced this result.
|
String |
getType()
Gets optional result type.
|
long |
getUserId()
Gets ID of the user that made the request this result is for.
|
String getModelId()
String getServerRequestId()
String getOriginalText()
long getUserId()
String getBody()
null
if error occurred.String getType()
null
if error occurred.String getErrorMessage()
null
if no errors occurred.int getErrorCode()
Code | Description |
---|---|
1 |
Rejected by the model. |
100 |
Unexpected system error. |
101 |
Model's result is too big. |
102 |
Recoverable system error. |
10001 |
Too many unknown words. |
10002 |
Sentence is too complex (too many free words). |
10003 |
Too many suspicious or unrelated words. |
10004 |
Swear words found and are not allowed. |
10005 |
Sentence contains no nouns. |
10006 |
Only latin charset is supported. |
10007 |
Only english language is supported. |
10008 |
Sentence seems unrelated to data model. |
10009 |
Sentence is too short (before processing). |
10010 |
Sentence is ambiguous. |
10011 |
Sentence is too short (after processing). |
10012 |
Sentence is too long. |
null
.String getProbeId()
String getLogHolder()
Copyright © 2020 NLPCraft. All rights reserved.