From 6ceb0f0518c270b26da993a036af5a765091e428 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 24 Aug 2017 21:43:00 +0200 Subject: [PATCH] Allow Lexeme.rank to be set --- spacy/lexeme.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spacy/lexeme.pyx b/spacy/lexeme.pyx index bcd84d184..f0f5c6398 100644 --- a/spacy/lexeme.pyx +++ b/spacy/lexeme.pyx @@ -171,6 +171,8 @@ cdef class Lexeme: property rank: def __get__(self): return self.c.id + def __set__(self, value): + self.c.id = value property sentiment: def __get__(self):