From 79b72ef8e0de4c130088c3e7e62e1b32b59cc268 Mon Sep 17 00:00:00 2001 From: Nico Matentzoglu Date: Wed, 11 Dec 2024 14:57:22 +0200 Subject: [PATCH] Update Makefile --- Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d82ae52..9d0a369 100644 --- a/Makefile +++ b/Makefile @@ -11,9 +11,19 @@ sort-%: babelon/hp-%.babelon.tsv babelon/hp-%.synonyms.tsv mv tmp/$*_babelon_sorted.tsv babelon/hp-$*.babelon.tsv mv tmp/$*_synonyms_sorted.tsv babelon/hp-$*.synonyms.tsv -clean-%: babelon/%.tsv - sed -E 's/\t[[:space:]]+/\t/g; s/[[:space:]]+\t/\t/g' $< > temp.tsv && mv temp.tsv $< - sed -E 's/\tMD/\tDOMAIN_EXPERT/g' $< > temp.tsv && mv temp.tsv $< +clean-%: babelon/hp-%.babelon.tsv babelon/hp-%.synonyms.tsv + sed -E 's/\t[[:space:]]+/\t/g; s/[[:space:]]+\t/\t/g' babelon/hp-$*.babelon.tsv > temp.tsv && mv temp.tsv babelon/hp-$*.babelon.tsv + sed -E 's/\t[[:space:]]+/\t/g; s/[[:space:]]+\t/\t/g' babelon/hp-$*.synonyms.tsv > temp.tsv && mv temp.tsv babelon/hp-$*.synonyms.tsv + +clean-all: + $(MAKE) clean-pt clean-de clean-fr clean-pt clean-zh + +sort-all: + $(MAKE) sort-pt sort-de sort-fr sort-pt sort-zh + +validate-%: babelon/hp-%.babelon.tsv babelon/hp-%.synonyms.tsv + tsvalid babelon/hp-$*.babelon.tsv --skip "W1" + tsvalid babelon/hp-$*.synonyms.tsv --skip "W1" ### prepare_data: