From 5d1a5e7f78194be7d094c72f71aaee3b5b524322 Mon Sep 17 00:00:00 2001 From: Ujjwal Sharma Date: Mon, 17 Oct 2016 20:11:04 +0530 Subject: [PATCH 1/2] Add NLTK Configuration to README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 1cfb069..f57373b 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,12 @@ $ npm install $ pip install -r requirements.txt ``` +### NLTK Configuration: + +``` +$ python -m nltk.downloader punkt averaged_perceptron_tagger +``` + ### Running: ``` From ce2468ad34473cceb69d8e55fe26d3f6f2da7f11 Mon Sep 17 00:00:00 2001 From: Ujjwal Sharma Date: Mon, 17 Oct 2016 20:44:33 +0530 Subject: [PATCH 2/2] Create Makefile --- Makefile | 16 ++++++++++++++++ README.md | 18 ++++++++---------- 2 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c3c5b20 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +install: + npm install + pip install -r requirements.txt + python -m nltk.downloader punkt averaged_perceptron_tagger + +run: + python server.py + TEST=true node chatbot.js + +serve: + python server.py + node chatbot.js + +test: + npm run-script lint + npm run-script frontend_tests diff --git a/README.md b/README.md index f57373b..e0c0330 100644 --- a/README.md +++ b/README.md @@ -8,25 +8,23 @@ This bot lives at [https://gitter.im/osdc/Hackers](https://gitter.im/osdc/Hacker ### Installation: ``` -$ npm install -$ pip install -r requirements.txt +$ make install ``` -### NLTK Configuration: +### Running locally with I/O to stdin and stdout: ``` -$ python -m nltk.downloader punkt averaged_perceptron_tagger +$ make run ``` -### Running: +### Running in production ``` -$ python server.py -$ TEST=true node chatbot.js # Run locally with I/O to stdin and stdout. +$ make serve ``` ### Testing: -Run code linter: `npm run-script lint` - -Run frontend tests: `npm run-script frontend_tests` +``` +$ make test +```