From c89ef32ea58f54f9db7f970225f1564d87941919 Mon Sep 17 00:00:00 2001 From: richardpaulhudson Date: Thu, 26 Jan 2023 21:27:00 +0100 Subject: [PATCH] Display "i" rather than "index" --- spacy/visualization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/visualization.py b/spacy/visualization.py index 5516e243f..1de5dd486 100644 --- a/spacy/visualization.py +++ b/spacy/visualization.py @@ -436,7 +436,7 @@ def render_document( AttributeFormat("tree_left", name="tree", aligns="r", fg_color=4), AttributeFormat("dep_", name="dep_"), AttributeFormat("ent_type_", name="ent_type_"), - AttributeFormat("i", name="index", aligns="r"), + AttributeFormat("i", name="i"), AttributeFormat("text", name="text", max_width=30), AttributeFormat("lemma_", name="lemma_", max_width=30), AttributeFormat("pos_", name="pos_"),