From c1a2e966041a755c15c8be5dc9e5028271d9334c Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 21 Sep 2016 20:45:51 +0200 Subject: [PATCH] Clean up notes at end of token.pyx --- spacy/tokens/token.pyx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/spacy/tokens/token.pyx b/spacy/tokens/token.pyx index 9f1a70636..6dca10030 100644 --- a/spacy/tokens/token.pyx +++ b/spacy/tokens/token.pyx @@ -528,17 +528,3 @@ cdef class Token: property like_email: def __get__(self): return Lexeme.c_check_flag(self.c.lex, LIKE_EMAIL) - - - - - -doc = nlp('Google Now is a moribund project destined for closure.') - -google_now = doc.ents[0] # Span instance - -google_now.attrs['category'] == 'TECHNOLOGY' - -ent_id = google_now.ent_id - -attrs = nlp.matcher.get_attrs(ent_id)