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

Disabling glove vectors in Spacy 1.1 gives an error #809

Closed
AliFlux opened this issue Feb 5, 2017 · 5 comments
Closed

Disabling glove vectors in Spacy 1.1 gives an error #809

AliFlux opened this issue Feb 5, 2017 · 5 comments
Labels
install Installation issues

Comments

@AliFlux
Copy link

AliFlux commented Feb 5, 2017

According to #506, there is a way to ignore vectors while loading spacy using:
spacy.load('en', vectors=False), but apparently it throws an error, as tested on Spacy 1.1.

nlp = spacy.load('en', vectors=False) # start spacy (english)
  File "C:\Program Files\Python35\lib\site-packages\spacy\__init__.py", line 38, in load
    'Could not load data pack %s from %s' % (overrides['vectors'], data_path))
OSError: Could not load data pack False from C:\Program Files\Python35\lib\site-packages\spacy\data

My stack:

  • Operating System: Windows 10
  • Python Version: 3.5.2
  • spaCy Version: 1.1

Does anyone else face such an issue? @honnibal?

@honnibal
Copy link
Member

honnibal commented Feb 7, 2017

Hi,

Could you retest with spaCy 1.6?

Matt

@honnibal honnibal added the install Installation issues label Feb 7, 2017
@eoinhurrell
Copy link

I'm getting the same in spaCy 1.6 on OSX with python 3.5.2


In [2]: spacy.load('en', vectors=False)
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-2-8bf9a1497325> in <module>()
----> 1 spacy.load('en', vectors=False)

/Users/ehurrell/anaconda3/lib/python3.5/site-packages/spacy/__init__.py in load(name, **overrides)
     40     cls = get_lang_class(target_name)
     41     overrides['path'] = path
---> 42     return cls(**overrides)

/Users/ehurrell/anaconda3/lib/python3.5/site-packages/spacy/en/__init__.py in __init__(self, **overrides)
     31         # Make a special-case hack for loading the GloVe vectors, to support
     32         # deprecated <1.0 stuff. Phase this out once the data is fixed.
---> 33         overrides = _fix_deprecated_glove_vectors_loading(overrides)
     34         Language.__init__(self, **overrides)
     35

/Users/ehurrell/anaconda3/lib/python3.5/site-packages/spacy/en/__init__.py in _fix_deprecated_glove_vectors_loading(overrides)
     51             if vec_path is None:
     52                 raise IOError(
---> 53                     'Could not load data pack %s from %s' % (overrides['vectors'], data_path))
     54         else:
     55             vec_path = match_best_version('en_glove_cc_300_1m_vectors', None, data_path)

OSError: Could not load data pack False from /Users/ehurrell/anaconda3/lib/python3.5/site-packages/spacy/data

@vivekka93
Copy link

Getting the same error using Python 2.7 on Ubuntu (spaCy version 1.6.0)

@ines
Copy link
Member

ines commented May 7, 2017

Closing this and making #1046 the master issue. Work in progress for spaCy v2.0!

@ines ines closed this as completed May 7, 2017
@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
install Installation issues
Projects
None yet
Development

No branches or pull requests

5 participants