public interface NCTestResult
Modifier and Type | Method and Description |
---|---|
String |
getModelId()
Gets model ID the test sentence was sent with.
|
long |
getProcessingTime()
Gets total sentence processing time in milliseconds.
|
Optional<String> |
getResult()
Gets optional execution result.
|
Optional<String> |
getResultError()
Gets optional execution error.
|
Optional<String> |
getResultType()
Gets optional execution result type.
|
String |
getText()
Gets test sentence text.
|
default boolean |
isFailed()
Tests whether or not this result corresponds to a failed execution.
|
default boolean |
isOk()
Tests whether or not this result corresponds to a successful execution.
|
String getText()
long getProcessingTime()
String getModelId()
Optional<String> getResult()
isFailed()
,
isOk()
Optional<String> getResultType()
isFailed()
,
isOk()
Optional<String> getResultError()
isFailed()
,
isOk()
default boolean isFailed()
return getResultError().isPresent();
true
if result corresponds to a failed execution, false
otherwise.default boolean isOk()
return getResult().isPresent() && getResultType().isPresent();
true
if result corresponds to a successful execution, false
otherwise.Copyright © 2020 NLPCraft. All rights reserved.