mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +03:00
2263bc7b28
* Fix `spacy.util.minibatch` when the size iterator is finished (#6745) * Skip 0-length matches (#6759) Add hack to prevent matcher from returning 0-length matches. * support IS_SENT_START in PhraseMatcher (#6771) * support IS_SENT_START in PhraseMatcher * add unit test and friendlier error * use IDS.get instead * ensure span.text works for an empty span (#6772) * Remove unicode_literals Co-authored-by: Santiago Castro <bryant@montevideo.com.uy> Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
6 lines
173 B
Python
6 lines
173 B
Python
def test_issue6755(en_tokenizer):
|
|
doc = en_tokenizer("This is a magnificent sentence.")
|
|
span = doc[:0]
|
|
assert span.text_with_ws == ""
|
|
assert span.text == ""
|