summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2024-05-15 15:48:09 +0200
committerEddy Pedroni <epedroni@pm.me>2024-05-15 15:48:09 +0200
commitf272f083af3d135e82ecdf0ce4e340ee2782364b (patch)
tree3467d8d5f362e1c95c7cc54a6781514015c913ff /Makefile
parent43c615646ab31626e4f8b8fa074a669195b4306a (diff)
Add makefile, use latest datasets
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fb7f7aa
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+all: data/adjectives.json data/nouns.csv venv
+
+run: all
+ ./venv/bin/python kasus.py
+
+clean:
+ rm -rf data/adjectives.json data/nouns.csv venv
+
+data/adjectives.json: data/adj-query.sh data/grab-dump.sh
+ cd data; ./adj-query.sh
+
+data/nouns.csv: data/noun-query.sh data/grab-dump.sh data/common-nouns
+ cd data; ./noun-query.sh
+
+venv: requirements.txt
+ python -m venv venv
+ ./venv/bin/pip install -r requirements.txt
+
+.PHONY: all run clean