mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 12:18:04 +03:00
22 lines
389 B
Python
22 lines
389 B
Python
"""Test suspected freeing of strings"""
|
|
from __future__ import unicode_literals
|
|
|
|
import pytest
|
|
|
|
from spacy.en import English
|
|
|
|
|
|
@pytest.fixture
|
|
def EN():
|
|
return English()
|
|
|
|
|
|
def test_one(EN):
|
|
tokens = EN('Betty Botter bought a pound of butter.')
|
|
assert tokens[0].orth_ == 'Betty'
|
|
tokens2 = EN('Betty also bought a pound of butter.')
|
|
assert tokens2[0].orth_ == 'Betty'
|
|
|
|
|
|
|