Commit Graph

7 Commits

Author SHA1 Message Date
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