neurolang.frontend.drs.exceptions module

exception neurolang.frontend.drs.exceptions.AmbiguousSentenceException(sentence, interpretations)

Bases: ParseException

A problem where the sentence got multiple parse trees. The parsed trees are attached in the interpretations array.

exception neurolang.frontend.drs.exceptions.CouldNotParseException(sentence)

Bases: ParseException

A problem which makes impossible to continue parsing the sentence and return a result.

exception neurolang.frontend.drs.exceptions.GrammarException

Bases: Exception

A problem with the grammar definition expression.

exception neurolang.frontend.drs.exceptions.ParseDatalogPredicateException

Bases: ParseException

A problem while parsing an embedded datalog fragment inside the controlled natural language.

exception neurolang.frontend.drs.exceptions.ParseException

Bases: Exception

A problem during the parse stage.

exception neurolang.frontend.drs.exceptions.TokenizeException

Bases: ParseException

A problem while converting the string into an array of tokens.

exception neurolang.frontend.drs.exceptions.TranslateToDatalogException

Bases: Exception

A problem during the translation to datalog from DRS.