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

Initializations fails (Python 3.4) #49

Closed
dpk opened this issue Apr 12, 2015 · 2 comments
Closed

Initializations fails (Python 3.4) #49

dpk opened this issue Apr 12, 2015 · 2 comments

Comments

@dpk
Copy link

dpk commented Apr 12, 2015

In [1]: import spacy.en

In [2]: nlp = spacy.en.English()
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-2-c68587acddc5> in <module>()
----> 1 nlp = spacy.en.English()

/usr/local/lib/python3.4/site-packages/spacy/en/__init__.py in __init__(self, data_dir)
     74         else:
     75             tok_data_dir = path.join(data_dir, 'tokenizer')
---> 76             tok_rules, prefix_re, suffix_re, infix_re = read_lang_data(tok_data_dir)
     77             prefix_re = re.compile(prefix_re)
     78             suffix_re = re.compile(suffix_re)

/usr/local/lib/python3.4/site-packages/spacy/util.py in read_lang_data(data_dir)
     14 def read_lang_data(data_dir):
     15     with open(path.join(data_dir, 'specials.json')) as file_:
---> 16         tokenization = json.load(file_)
     17     prefix = read_prefix(data_dir)
     18     suffix = read_suffix(data_dir)

/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/json/__init__.py in load(fp, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
    266         cls=cls, object_hook=object_hook,
    267         parse_float=parse_float, parse_int=parse_int,
--> 268         parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
    269 
    270 

/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
    316             parse_int is None and parse_float is None and
    317             parse_constant is None and object_pairs_hook is None and not kw):
--> 318         return _default_decoder.decode(s)
    319     if cls is None:
    320         cls = JSONDecoder

/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/json/decoder.py in decode(self, s, _w)
    341 
    342         """
--> 343         obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    344         end = _w(s, end).end()
    345         if end != len(s):

/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/json/decoder.py in raw_decode(self, s, idx)
    357         """
    358         try:
--> 359             obj, end = self.scan_once(s, idx)
    360         except StopIteration as err:
    361             raise ValueError(errmsg("Expecting value", s, err.value)) from None

ValueError: Expecting property name enclosed in double quotes: line 567 column 1 (char 15406)
@honnibal
Copy link
Member

Try now --- just released 0.80. This should be fixed.

(run pip install --upgrade spacy)

@lock
Copy link

lock bot commented May 9, 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 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants