exception

Custom exceptions for pyconll. These errors are a ParseError and a FormatError.

A ParseError occurs when the source input to a CoNLL component is invalid, and a FormatError occurs when the internal state of the component is invalid, and the component cannot be output to a CoNLL string.

API

Holds custom pyconll errors. These errors include parsing errors when reading treebanks, and errors when outputting CoNLL objects.

exception pyconll.exception.FormatError[source]

Error that results from trying to format a CoNLL object to a string.

exception pyconll.exception.ParseError[source]

Error that results from an improper value into a parsing routine.