Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when tab-completing methods for token #1813

Closed
ahalterman opened this issue Jan 9, 2018 · 3 comments
Closed

Error when tab-completing methods for token #1813

ahalterman opened this issue Jan 9, 2018 · 3 comments
Labels
bug Bugs and behaviour differing from documentation

Comments

@ahalterman
Copy link

I ran into an issue where I try to tab-complete the methods from a token, and I get an endless and unstoppable series of Deprecation warnings. This code reproduces the bug on my machine:

import spacy
nlp = spacy.load("en")       # same behavior with `en_core_web_lg`
doc = nlp("Tokens are an important component of written language.")
tok = doc[3]
tok.[TAB]

This results in an endless stream of repeated warnings that can't be stopped with ctrl-C:

/Users/ahalterman/anaconda3/lib/python3.6/threading.py:884: DeprecationWarning: Token.sent_start is now deprecated. Use Token.is_sent_start instead, which returns a boolean value or None if the answer is unknown – instead of a misleading 0 for False and 1 for True. It also fixes a quirk in the old logic that would always set the property to 0 for the first word of the document.
  self._bootstrap_inner()

Your Environment

  • spaCy version: 2.0.5
  • Platform: Darwin-16.7.0-x86_64-i386-64bit
  • Python version: 3.6.3
@ahalterman
Copy link
Author

In a different context, I got another error when tab-completing the methods from a token:

Traceback (most recent call last):
  File "/Users/ahalterman/anaconda3/lib/python3.6/site-packages/jedi/cache.py", line 119, in wrapper
    return dct[key]
KeyError: (('sent_start',), frozenset())

@honnibal honnibal added the bug Bugs and behaviour differing from documentation label Jan 12, 2018
@honnibal
Copy link
Member

Thanks!

@lock
Copy link

lock bot commented May 8, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bugs and behaviour differing from documentation
Projects
None yet
Development

No branches or pull requests

2 participants