Skip to content

Commit

Permalink
Correct code example for Span.lemma_ in API Docs (explosion#13405)
Browse files Browse the repository at this point in the history
  • Loading branch information
schorfma committed Apr 12, 2024
1 parent f5e85fa commit b334a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/api/span.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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~~ |
Expand Down

0 comments on commit b334a7a

Please sign in to comment.