Commit Graph

17 Commits

Author SHA1 Message Date
Giovanni Campagna 2769cc96e3 Add the option to train a portion of decoder embeddings
This will be needed because GloVe/char embeddings are meaningless
for tokens that encode grammar productions (which are of the form
"R<id>")
2019-03-19 17:31:53 -07:00
Giovanni Campagna 7325ca1cc7 Add option to use grammar in Almond task 2019-03-19 14:38:18 -07:00
Giovanni Campagna 02e4d6ddac Prepare for supporting grammar
Use a consistent preprocessing function, provided by the task class,
between server and train/predict, and load the tasks once.
2019-03-19 11:14:32 -07:00
Giovanni Campagna 42331a3c08 Fix JSON serialization of arguments 2019-03-19 10:07:00 -07:00
Giovanni Campagna 6f777425ea Remove --reverse_task argument
If you want to train on the reverse Almond task, use "reverse_almond"
as a task name, as you should.
2019-03-19 10:03:28 -07:00
Giovanni Campagna 5989846771 Make use of task classes
And clean up the metric handling code as well
2019-03-19 10:01:45 -07:00
mehrad 292419b299 adding weight regularization option 2019-03-13 17:24:10 -07:00
Giovanni Campagna ea5655c957 Unify word embedding loading code
Into a new module
2019-03-13 10:42:04 -07:00
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 c2406e62e0 Fix "get_commit" when invoking "decanlp" installed with "pip install -e"
sys.argv will be a script living in ~/.bin that loads and executes
the module, so it will not live in the git repository
2019-03-02 18:28:04 +00: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 bafabac483 Fix argument handling 2019-03-01 16:13:10 -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