mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
17 lines
353 B
Python
17 lines
353 B
Python
"""Test suspected freeing of strings"""
|
|
from __future__ import unicode_literals
|
|
|
|
import pytest
|
|
|
|
from spacy.en import EN
|
|
|
|
|
|
def test_one():
|
|
tokens = EN.tokenize('Betty Botter bought a pound of butter.')
|
|
assert tokens[0].string == 'Betty'
|
|
tokens2 = EN.tokenize('Betty also bought a pound of butter.')
|
|
assert tokens2[0].string == 'Betty'
|
|
|
|
|
|
|