From 0ea623990ea38d22d7359e963324496e58928fa0 Mon Sep 17 00:00:00 2001 From: richardpaulhudson Date: Thu, 26 Jan 2023 17:34:55 +0100 Subject: [PATCH] Format with black --- spacy/visualization.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spacy/visualization.py b/spacy/visualization.py index 75954a8e2..b00191c6e 100644 --- a/spacy/visualization.py +++ b/spacy/visualization.py @@ -412,9 +412,9 @@ class Visualizer: def get_token_value(token: Token, attribute: str) -> str: - """ - Get value *token.x.y.z*. - + """ + Get value *token.x.y.z*. + token: the token attribute: the attribute name, e.g. *x.y.z*. """ @@ -432,10 +432,10 @@ def get_adjusted_start_i( search_attr_name: str, search_attr_value: str, ): - """ + """ Get the position at which to start rendering a document, which may be adjusted by a search for a specific attribute value. - + doc: the document start_i: the user-specified start index cols: the list of attribute columns being displayed