mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Clean up notes at end of token.pyx
This commit is contained in:
parent
f6e587b1c7
commit
c1a2e96604
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user