From 90c143bd85c0ffc8aaf73f6206d76896959e42b7 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 5 Jan 2015 18:49:19 +1100 Subject: [PATCH] * Fix orth import --- spacy/lexeme.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/lexeme.pyx b/spacy/lexeme.pyx index 07bb008f9..1423f30c9 100644 --- a/spacy/lexeme.pyx +++ b/spacy/lexeme.pyx @@ -4,7 +4,7 @@ from murmurhash.mrmr cimport hash64 from libc.string cimport memset -import orth +from .orth cimport word_shape memset(&EMPTY_LEXEME, 0, sizeof(Lexeme)) @@ -23,7 +23,7 @@ cpdef Lexeme init(id_t i, unicode string, hash_t hashed, lex.prefix = string_store[string[:1]] lex.suffix = string_store[string[-3:]] - lex.shape = string_store[orth.word_shape(string)] + lex.shape = string_store[word_shape(string)] lex.flags = props.get('flags', 0) return lex