Commit Graph

10 Commits

Author SHA1 Message Date
mehrad cc2c1895c4 update export_results 2019-03-04 17:13:32 -08:00
Giovanni Campagna 96ce6dc26f saver: add .pth to new file 2019-03-04 00:21:42 -08:00
Giovanni Campagna d1e54e9734 saver: actually save checkpoint.json
Won't go far without it
2019-03-03 23:37:37 -08:00
Giovanni Campagna b950927a2b Clean up old checkpoints as we go along
Introduce an utility Saver class, that does what tensorflow's Saver
does: keeps track of saved checkpoints in a separate file, and
deletes the old ones before saving a new one.
2019-03-03 22:35:29 -08:00
mehrad 3a1b969ad3 updates 2019-03-01 17:51:54 -08:00
Giovanni Campagna ce5c1aa8df Use logger instead of print()
print() uses stdout by default, which has two problems:

- it is not flushed until later (so messages don't show, or don't show
  up in order with other loggers)
- it conflicts with stdin/stdout usage by `decanlp server --stdin`
2019-03-01 17:35:04 -08:00
Giovanni Campagna ac3ac8c680 Add Stanford copyright to all files that we touched 2019-03-01 15:54:54 -08:00
Giovanni Campagna 8e2b519ac3 Add copyright notices to all files
Makes the license clear and explicit
2019-03-01 15:51:45 -08:00
Giovanni Campagna 99e39f9528 Move generic dataset outside of torchtext
There is no reason for it to live inside torchtext, and having it
outside will help with using torchtext as a library
2019-03-01 15:47:11 -08:00
Giovanni Campagna 41b80bb4f4 Move all python files to a decanlp/ package
As per python conventions
2019-03-01 15:43:02 -08:00