From 4126ef3b8c51a9fa3c5bb1d126c185ea2cdeacf3 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 6 Jun 2015 05:57:36 +0200 Subject: [PATCH] * Restore hyphenation test to test_infix --- tests/test_infix.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_infix.py b/tests/test_infix.py index 1b188e88a..5c6558009 100644 --- a/tests/test_infix.py +++ b/tests/test_infix.py @@ -4,15 +4,15 @@ import pytest from spacy.en import English +EN = English() -#def test_hyphen(): -# tokens = EN.tokenize('best-known') -# assert len(tokens) == 3 +def test_hyphen(): + tokens = EN.tokenizer('best-known') + assert len(tokens) == 3 def test_period(): - EN = English() tokens = EN.tokenizer('best.Known') assert len(tokens) == 3 - tokens = EN('zombo.com') + tokens = EN.tokenizer('zombo.com') assert len(tokens) == 1