diff --git a/app/utils/grew_utils.py b/app/utils/grew_utils.py index 20ce305..b6eca94 100644 --- a/app/utils/grew_utils.py +++ b/app/utils/grew_utils.py @@ -561,8 +561,8 @@ def format_trees_new(m, trees, is_package: bool = False): try: sentence_json = sentenceConllToJson(conll) except Exception as e: - abort(400, 'The result of your query can not be processed by ArboratorGrew beacuse: {}'.format(str(e))) - + abort(400, 'The result of your query can not be processed by ArboratorGrew in sentence `{}` because: {}'.format(sent_id, str(e))) + sentence_text = constructTextFromTreeJson(sentence_json["treeJson"]) trees[sample_name][sent_id] = { "sentence": sentence_text,