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

Errors while running spacy with keras example #2743

Closed
romikforest opened this issue Sep 6, 2018 · 2 comments
Closed

Errors while running spacy with keras example #2743

romikforest opened this issue Sep 6, 2018 · 2 comments
Labels
examples Code examples in /examples

Comments

@romikforest
Copy link

spacy 2.0.11, python Python 3.6.6 :: Anaconda custom (64-bit), win 10 64 bit

I was trying to run spacy with keras example from documentation, but could not use it as is:
I could not save the spacy model after training.

with (model_dir / 'config.json').open('wb') as file_:
file_.write(lstm.to_json())

had error str can't be saved to binary file (and it doesn't manage directory existence).
Than I can't evalaluate the model.
In rintime spacy loads 'en'. And while training - 'en_vectors_web_lg'
I've tried to load all standard models, standard models and vectors like nlp.vocab.vectors.from_disk('en_vectors_web_lg'). I always have errors:
Tagger is not in model
Wrong vectors shape
TypeError: 'Tagger' object is not iterable

and so on

@honnibal honnibal added the examples Code examples in /examples label Sep 11, 2018
@ines ines mentioned this issue Sep 12, 2018
8 tasks
@ines
Copy link
Member

ines commented Sep 12, 2018

Merging this with #2758.

@lock
Copy link

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

No branches or pull requests

3 participants