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

Doesn't save params.json #117

Open
tahirahmad2030 opened this issue Sep 10, 2019 · 2 comments
Open

Doesn't save params.json #117

tahirahmad2030 opened this issue Sep 10, 2019 · 2 comments

Comments

@tahirahmad2030
Copy link

tahirahmad2030 commented Sep 10, 2019

I trained a model on NER using training_example.py. The below code in the script didn't save params json.

    model.save(args.weights_file, args.params_file, args.preprocessor_file)
    p.save(args.preprocessor_file)```
@parkourcx
Copy link

I have met the same issue, did you fix it?

@parkourcx
Copy link

@tahirahmad2030 I have fixed this problem by:
model_json = model.to_json()
with open(args.params_file,'w') as jf:
jf.write(model_json)

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

2 participants