From efc229c3f4e19a4e18aaa94cd2ffa9a68acd8ef6 Mon Sep 17 00:00:00 2001 From: Gareth Sparks Date: Fri, 18 Dec 2020 03:54:56 -0500 Subject: [PATCH] Doc.char_span arg: alignment_mode (#6591) Currently labeled "mode", actually "alignment_mode" --- website/docs/api/doc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/api/doc.md b/website/docs/api/doc.md index 420e12fcb..93f63e582 100644 --- a/website/docs/api/doc.md +++ b/website/docs/api/doc.md @@ -206,7 +206,7 @@ Create a `Span` object from the slice `doc.text[start_idx:end_idx]`. Returns | `label` | uint64 / unicode | A label to attach to the span, e.g. for named entities. | | `kb_id` 2.2 | uint64 / unicode | An ID from a knowledge base to capture the meaning of a named entity. | | `vector` | `numpy.ndarray[ndim=1, dtype='float32']` | A meaning representation of the span. | -| `mode` | `str` | How character indices snap to token boundaries. Options: "strict" (no snapping), "inside" (span of all tokens completely within the character span), "outside" (span of all tokens at least partially covered by the character span). Defaults to "strict". | +| `alignment_mode` | `str` | How character indices snap to token boundaries. Options: "strict" (no snapping), "inside" (span of all tokens completely within the character span), "outside" (span of all tokens at least partially covered by the character span). Defaults to "strict". | | **RETURNS** | `Span` | The newly constructed object or `None`. | ## Doc.similarity {#similarity tag="method" model="vectors"}