japerk / nltk-trainer

Train NLTK objects with zero code
http://nltk-trainer.readthedocs.org/en/latest/
Apache License 2.0
747 stars 225 forks source link

Turn Python scripts into a command-line tool #24

Closed jeroenjanssens closed 10 years ago

jeroenjanssens commented 10 years ago

Great package! Wouldn't it be nice if you could invoke the scripts with something like:

$ nltk train movie_reviews --instances paras --classifier NaiveBayes
$ nltk analyze --sort count --reverse

instead of:

$ python train_classifier.py movie_reviews --instances paras --classifier NaiveBayes
$ python analyze_tagged_corpus.py treebank --sort count --reverse

so that this is truly a command-line tool? Shouldn't be too much work using docopt and adding a console_script entry point in setup.py. What do you think?

japerk commented 10 years ago

Thanks, I like the idea. I don't have the time to work on it right now, but you're welcome to fork & contribute.