From f72243b15652507a6be5e003ad2ea0af60ac7506 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 18 Dec 2014 20:41:32 +1100 Subject: [PATCH] * Set const-correctness for Feature* array --- spacy/syntax/parser.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spacy/syntax/parser.pyx b/spacy/syntax/parser.pyx index a0bb7485a..269ebae62 100644 --- a/spacy/syntax/parser.pyx +++ b/spacy/syntax/parser.pyx @@ -68,7 +68,7 @@ cdef class GreedyParser: cpdef int parse(self, Tokens tokens) except -1: cdef: - Feature* feats + const Feature* feats const weight_t* scores Transition guess @@ -86,8 +86,8 @@ cdef class GreedyParser: def train_sent(self, Tokens tokens, list gold_heads, list gold_labels): cdef: - Feature* feats - weight_t* scores + const Feature* feats + const weight_t* scores Transition guess Transition gold