mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Fix sentence boundary test
This commit is contained in:
parent
d2f469b809
commit
02c23cc1d0
|
@ -34,7 +34,7 @@ def test_single_exclamation(EN):
|
|||
@pytest.mark.models
|
||||
def test_single_question(EN):
|
||||
string = 'A test sentence?'
|
||||
words = EN(string, tag=False, parse=False)
|
||||
words = EN(string, tag=False, parse=True)
|
||||
assert len(words) == 4
|
||||
assert len(list(words.sents)) == 1
|
||||
assert sum(len(sent) for sent in words.sents) == len(words)
|
||||
|
|
Loading…
Reference in New Issue
Block a user