* Import attrs from spacy.attrs, not spacy.typedefs

This commit is contained in:
Matthew Honnibal 2015-07-16 11:23:25 +02:00
parent 6c99e5f4aa
commit 30be4f15da
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
from ..vocab cimport Vocab from ..vocab cimport Vocab
from ..structs cimport TokenC from ..structs cimport TokenC
from ..typedefs cimport attr_id_t from ..attrs cimport attr_id_t
from .doc cimport Doc from .doc cimport Doc

View File

@ -11,9 +11,9 @@ import numpy
from ..parts_of_speech import UNIV_POS_NAMES from ..parts_of_speech import UNIV_POS_NAMES
from ..typedefs cimport LEMMA from ..attrs cimport LEMMA
from ..typedefs cimport ID, ORTH, NORM, LOWER, SHAPE, PREFIX, SUFFIX, LENGTH, CLUSTER from ..attrs cimport ID, ORTH, NORM, LOWER, SHAPE, PREFIX, SUFFIX, LENGTH, CLUSTER
from ..typedefs cimport POS, LEMMA, TAG, DEP from ..attrs cimport POS, LEMMA, TAG, DEP
from ..parts_of_speech cimport CONJ, PUNCT from ..parts_of_speech cimport CONJ, PUNCT