From 7663970d5f99b7decf67b58859def695abc296b0 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 7 Nov 2015 17:06:15 +1100 Subject: [PATCH] * Removed unused i variable from Span, and set attributes to read-only --- spacy/tokens/span.pxd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/spacy/tokens/span.pxd b/spacy/tokens/span.pxd index e072e40d1..eeb663f67 100644 --- a/spacy/tokens/span.pxd +++ b/spacy/tokens/span.pxd @@ -3,11 +3,10 @@ from .doc cimport Doc cdef class Span: cdef readonly Doc doc - cdef public int i - cdef public int start - cdef public int end - cdef public int start_char - cdef public int end_char + cdef readonly int start + cdef readonly int end + cdef readonly int start_char + cdef readonly int end_char cdef readonly int label cdef public _vector