NCCuration

class NCCuration(msg: String, cause: Throwable) extends NCRejection

A type of rejection indicating that human curation is required. Curation is typically an indication that input query is likely valid but needs a human correction like a typo fix, slang resolution, etc.

Note that NLPCraft does not handle the curation process itself but only allows to indicate the curation request by throwing this exception. Curation is a special type of rejection. The user code is responsible for he actual handling of the curation logic, e.g. giving the user an option to fix the input and resubmitting the request.

Value parameters:
cause

Optional cause of this exception.

msg

Curation message.

Source:
NCCuration.scala
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Value members

Inherited methods

final def addSuppressed(x$0: Throwable): Unit
Inherited from:
Throwable
def fillInStackTrace(): Throwable
Inherited from:
Throwable
def getCause(): Throwable
Inherited from:
Throwable
def getLocalizedMessage(): String
Inherited from:
Throwable
def getMessage(): String
Inherited from:
Throwable
def getStackTrace(): Array[StackTraceElement]
Inherited from:
Throwable
final def getSuppressed(): Array[Throwable]
Inherited from:
Throwable
def initCause(x$0: Throwable): Throwable
Inherited from:
Throwable
def printStackTrace(x$0: PrintWriter): Unit
Inherited from:
Throwable
def printStackTrace(x$0: PrintStream): Unit
Inherited from:
Throwable
Inherited from:
Throwable
def setStackTrace(x$0: Array[StackTraceElement]): Unit
Inherited from:
Throwable
def toString(): String
Inherited from:
Throwable