trainer.extend(extensions.PrintReport(
["epoch", "iteration", "accuracy"]),
trigger=(interval, "iteration"))
trainer.extend(extensions.ProgressBar(
update_interval=1 if args.test else 10))
trainer.extend(extensions.snapshot())
trainer.extend(extensions.snapshot_object(
model, "model_iter_{.updater.iteration}"))
if args.resume:
After Change
parser.set_defaults(test=False)
parser.add_argument("--hidden_size", type=int, default=300,
help="Number of LSTM units in each layer")
parser.add_argument("--embed_size", type=int, default=300,
help="Size of embeddings")
parser.add_argument("--model", "-m", default="model.npz",
help="Model file name to serialize")
parser.add_argument("--glove", default="data/glove.6B.300d.txt",
help="Path to glove embedding file.")