You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attribute lemma_ for a Span is described as follows in the API docs:
The span's lemma. Equivalent to "".join(token.text_with_ws for token in span).
Suggested Change
The equivalent code example should not contain token.text_with_ws in the comprehension, but token.lemma_ + token.whitespace_:
- | `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~~ |
Hello spaCy team,
I found a small discrepancy in the documentation.
The attribute
lemma_
for aSpan
is described as follows in the API docs:Suggested Change
The equivalent code example should not contain
token.text_with_ws
in the comprehension, buttoken.lemma_ + token.whitespace_
:Which page or section is this issue related to?
Span
website/docs/api/span.mdx
/ Line 564The text was updated successfully, but these errors were encountered: