anago icon indicating copy to clipboard operation
anago copied to clipboard

Doesn't save params.json

Open tahirahmad2030 opened this issue 5 years ago • 2 comments

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)```

tahirahmad2030 avatar Sep 10 '19 14:09 tahirahmad2030

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

parkourcx avatar Sep 21 '19 14:09 parkourcx

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

parkourcx avatar Sep 25 '19 05:09 parkourcx