diff --git a/spacy/lexeme.pxd b/spacy/lexeme.pxd index 11b40e0e8..e51273ecd 100644 --- a/spacy/lexeme.pxd +++ b/spacy/lexeme.pxd @@ -6,7 +6,7 @@ cpdef flag_t OOV_DIST_FLAGS cpdef enum LexInts: - LexInt_i + LexInt_id LexInt_length LexInt_cluster LexInt_pos @@ -22,7 +22,7 @@ cpdef enum LexFloats: cpdef enum LexStrs: LexStr_orig - LexStr_casefix + LexStr_norm LexStr_shape LexStr_unsparse LexStr_asciied diff --git a/spacy/lexeme.pyx b/spacy/lexeme.pyx index 8df0e554c..edbc8e027 100644 --- a/spacy/lexeme.pyx +++ b/spacy/lexeme.pyx @@ -8,7 +8,7 @@ OOV_DIST_FLAGS = 0 cpdef dict get_lexeme_dict(size_t i, unicode string): ints = [None for _ in range(LexInt_N)] - ints[LexInt_i] = i + ints[LexInt_id] = i ints[LexInt_length] = len(string) ints[LexInt_cluster] = 0 ints[LexInt_pos] = 0 @@ -20,7 +20,7 @@ cpdef dict get_lexeme_dict(size_t i, unicode string): strings = [None for _ in range(LexStr_N)] strings[LexStr_orig] = string - strings[LexStr_casefix] = strings[LexStr_orig] + strings[LexStr_norm] = strings[LexStr_orig] strings[LexStr_shape] = orth.word_shape(string) strings[LexStr_unsparse] = strings[LexStr_shape] strings[LexStr_asciied] = orth.asciied(string)