spaCy/spacy/tests/vocab/test_is_punct.py
2015-10-26 00:07:31 +11:00

17 lines
218 B
Python

from __future__ import unicode_literals
from spacy.orth import is_punct
def test_comma():
assert is_punct(',')
def test_space():
assert not is_punct(' ')
def test_letter():
assert not is_punct('a')