explosion / spacy-course

👩‍🏫 Advanced NLP with spaCy: A free online course
https://course.spacy.io
MIT License
2.31k stars 368 forks source link

Diagram for the Span object #122

Open kalyani-subbiah opened 2 years ago

kalyani-subbiah commented 2 years ago

Data Structures(2): Doc, Span and Token: https://course.spacy.io/en/chapter2 Section 2 on the Span Object

The [diagram] says Span(1,4). The slice from index 1 - 4 is highlighted in yellow. while it should be from index 1 to 3 since the end index is exclusive Screen Shot 2022-02-01 at 11 30 12 AM .