Commit b4056ad3 authored by Bruno Guillaume's avatar Bruno Guillaume
Browse files

Improve error message for inconsistent textform usage

parent 1e9cc231
......@@ -612,7 +612,9 @@ module Node = struct
match node.textform with
| Some tf -> unescape_form tf
| None -> Error.error ~fct:"find_original_textform" "No `wordform` feature"
| None -> Error.error
"Cannot build CoNLL data from graph: inconsistent textform data in graph; the token <%d> (form=%s) does not have a `textform` whereas the next token as a \"_\" textform" i node.form
| None -> Error.error ~fct:"find_original_textform" "Cannot find node `%d`" i in
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment