mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 12:18:04 +03:00
4e7259c6cf
* docbin init fix + documentation fix + unit tests * newline * try with zlib instead of gzip (python 2 incompatibilities)
12 lines
282 B
Python
12 lines
282 B
Python
# coding: utf8
|
|
from __future__ import unicode_literals
|
|
|
|
from spacy.tokens import DocBin
|
|
|
|
|
|
def test_issue4367():
|
|
"""Test that docbin init goes well"""
|
|
doc_bin_1 = DocBin()
|
|
doc_bin_2 = DocBin(attrs=["LEMMA"])
|
|
doc_bin_3 = DocBin(attrs=["LEMMA", "ENT_IOB", "ENT_TYPE"])
|