Commit Graph

9 Commits

Author SHA1 Message Date
mehrad b3bbad24c5 update tests 2019-03-04 15:08:56 -08:00
mehrad ef94113a67 let user specifies total number of checkpoints to keep 2019-03-04 12:04:03 -08:00
Giovanni Campagna c9d8e920a9 Fix logger.debug call
It does not take more than one argument
2019-03-03 22:50:30 -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
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 5447d0c37c Add a "decanlp" script that calls out to the different subcommands
Usage:
- decanlp train ...
- decanlp predict ...
- decanlp convert-to-logical-forms ...
2019-03-01 15:43:02 -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