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

Relative paths in config.json #55

Open
morawi opened this issue Mar 6, 2019 · 0 comments
Open

Relative paths in config.json #55

morawi opened this issue Mar 6, 2019 · 0 comments

Comments

@morawi
Copy link

morawi commented Mar 6, 2019

Thank you so much for sharing this repo. Just two questions :
1- Config.json has many relative paths, do we have to change them all?
2- The English lang zip file has the name '144', I am changing it to 'English' and copy it inside the ELMO folder.

Now, I am having this encoding error, any ideas?
NB. I am using Python 3.6.8

from elmoformanylangs import Embedder

e = Embedder('/home/malrawi/Desktop/My Programs/ELMO/English/')
Traceback (most recent call last):

  File "<ipython-input-15-3e3369c99ad2>", line 1, in <module>
    e = Embedder('/home/malrawi/Desktop/My Programs/ELMO/English/')

  File "/home/malrawi/Documents/ELMO/elmoformanylangs/elmo.py", line 107, in __init__

  File "/home/malrawi/Documents/ELMO/elmoformanylangs/elmo.py", line 115, in get_model

  File "/home/malrawi/anaconda3/lib/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)

  File "/home/malrawi/anaconda3/lib/python3.6/json/__init__.py", line 344, in loads
    s, 0)

JSONDecodeError: Unexpected UTF-8 BOM (decode using utf-8-sig)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant