From f6556d8e5dd56f9480b4fefb088fa4ccbd541740 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 20 Dec 2014 06:51:03 +1100 Subject: [PATCH] * Refactor, move Lexeme struct to structs.pxd --- spacy/lexeme.pxd | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/spacy/lexeme.pxd b/spacy/lexeme.pxd index a6f20906b..5926baa0c 100644 --- a/spacy/lexeme.pxd +++ b/spacy/lexeme.pxd @@ -1,6 +1,6 @@ from .typedefs cimport hash_t, flags_t, id_t, len_t, tag_t, attr_t - -from .utf8string cimport StringStore +from .structs cimport Lexeme +from .strings cimport StringStore # Reserve 64 values for flag features @@ -83,24 +83,6 @@ cpdef enum attr_id_t: LEMMA -cdef struct Lexeme: - flags_t flags - - attr_t id - attr_t sic - attr_t dense - attr_t shape - attr_t prefix - attr_t suffix - - attr_t length - attr_t cluster - attr_t pos_type - - float prob - float sentiment - - cdef Lexeme EMPTY_LEXEME