Also add infobox to API docs [ci skip]

This commit is contained in:
Ines Montani 2019-07-17 16:26:41 +02:00
parent c3ead02ea5
commit a0acb1b3cd
1 changed files with 9 additions and 0 deletions

View File

@ -81,6 +81,15 @@ Convert a list of Doc objects into the
Calculate alignment tables between two tokenizations, using the Levenshtein
algorithm. The alignment is case-insensitive.
<Infobox title="Important note" variant="warning">
The current implementation of the alignment algorithm assumes that both
tokenizations add up to the same string. For example, you'll be able to align
`["I", "'", "m"]` and `["I", "'m"]`, which both add up to `"I'm"`, but not
`["I", "'m"]` and `["I", "am"]`.
</Infobox>
> #### Example
>
> ```python