From b334a7a54d449ece2a6470bc28071074dbf57c9d Mon Sep 17 00:00:00 2001 From: Martin Schorfmann Date: Fri, 12 Apr 2024 15:48:39 +0200 Subject: [PATCH] Correct code example for Span.lemma_ in API Docs (#13405) --- website/docs/api/span.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/api/span.mdx b/website/docs/api/span.mdx index 41422a5b4..74467431a 100644 --- a/website/docs/api/span.mdx +++ b/website/docs/api/span.mdx @@ -561,7 +561,7 @@ overlaps with will be returned. | `orth_` | Verbatim text content (identical to `Span.text`). Exists mostly for consistency with the other attributes. ~~str~~ | | `label` | The hash value of the span's label. ~~int~~ | | `label_` | The span's label. ~~str~~ | -| `lemma_` | The span's lemma. Equivalent to `"".join(token.text_with_ws for token in span)`. ~~str~~ | +| `lemma_` | The span's lemma. Equivalent to `"".join(token.lemma_ + token.whitespace_ for token in span).strip()`. ~~str~~ | | `kb_id` | The hash value of the knowledge base ID referred to by the span. ~~int~~ | | `kb_id_` | The knowledge base ID referred to by the span. ~~str~~ | | `ent_id` | The hash value of the named entity the root token is an instance of. ~~int~~ |