mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 09:14:32 +03:00
Fix unicode declaration on test
This commit is contained in:
parent
318c23d318
commit
ff42b726c1
|
@ -1,3 +1,4 @@
|
|||
from __future__ import unicode_literals
|
||||
import random
|
||||
|
||||
from ..pipeline import TextCategorizer
|
||||
|
@ -33,7 +34,6 @@ def test_textcat_learns_multilabel():
|
|||
truth = {letter: w2==letter for letter in letters}
|
||||
model(doc)
|
||||
for cat, score in doc.cats.items():
|
||||
print(doc, cat, score)
|
||||
if not truth[cat]:
|
||||
assert score < 0.5
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user