From 2b2dec95d33637c87f694ee75f95cfe9af270a7c Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 24 Mar 2015 04:31:20 +0100 Subject: [PATCH] * Add comment to set_parse --- spacy/tokens.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spacy/tokens.pyx b/spacy/tokens.pyx index 038803c29..71ecf44df 100644 --- a/spacy/tokens.pyx +++ b/spacy/tokens.pyx @@ -245,6 +245,8 @@ cdef class Tokens: yield Span(self, start, self.length) cdef int set_parse(self, const TokenC* parsed) except -1: + # TODO: This method is fairly misleading atm. It's used by GreedyParser + # to actually apply the parse calculated. Need to rethink this. self._py_tokens = [None] * self.length self.is_parsed = True for i in range(self.length):