-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 1.03 KB
/
Makefile
File metadata and controls
38 lines (28 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
all:
wiki_folder = data/deu_wikipedia_2021_100K
wiki = $(wiki_folder)/deu_wikipedia_2021_100K-sentences.txt
lt = lib/LanguageTool-5.7/languagetool-server.jar
$(wiki):
python src/download_wiki.py
wiki: $(wiki)
$(lt):
wget -P lib https://languagetool.org/download/LanguageTool-stable.zip
unzip -d lib lib/LanguageTool-stable.zip
lib/de:
wget -P lib https://languagetool.org/download/ngram-data/ngrams-de-20150819.zip
unzip -d lib lib/ngrams-de-20150819.zip
lt_server: $(lt) lib/de
java -cp $(lt) org.languagetool.server.HTTPServer --port 8081 --languageModel=lib
data/training_data_general.json: wiki
jupyter execute src/synthesize_training_data_general.ipynb
data/training_data_gender.json: wiki $(lt)
jupyter execute src/synthesize_training_data_gender.ipynb
data/training_data_gender_highlighted.json: data/training_data_gender.json
python src/annotate/highlight.py
clean:
rm -rf $(wiki_folder)
rm -rf lib/*
rm -rf data/training_data_gender_highlighted.json
rm -rf **/__pycache__
rm -rf **/.cache
rm -rf **/.ipynb_checkpoints