Makefile 1.18 KB
Newer Older
1 2 3 4 5 6
self_doc:
	@echo "make update --> Rebuild sequoia.surf.conll and sequoia.deep.conll"
	@echo "make clean  --> Remove automatically built files"
	@echo "make mwe    --> List and count MWE in Sequoia"

update:
7
	cut -f 1-10 PARSEME-FR/sequoia-ftb.deep_and_surf.cupt_parsemefr > trunk/sequoia.deep_and_surf.conll
Bruno Guillaume's avatar
Bruno Guillaume committed
8 9
	grew transform -grs tools/sequoia_proj.grs -strat surf -i trunk/sequoia.deep_and_surf.conll -o trunk/sequoia.surf.conll
	grew transform -grs tools/sequoia_proj.grs -strat deep -i trunk/sequoia.deep_and_surf.conll -o trunk/sequoia.deep.conll
10 11 12 13 14 15 16 17

clean:
	rm -f trunk/sequoia.surf.conll trunk/sequoia.deep.conll

mwe:
	grep mwelemma trunk/sequoia.surf.conll | cut -f 6 | sed "s/mwelemma/%mwelemma/" | tr '%' '\n' | grep mwelemma | cut -f 1 -d "|" | sed "s/mwelemma=//" | sort | uniq -c | sort -r

talc2:
Bruno Guillaume's avatar
Bruno Guillaume committed
18
	scp tools/sequoia_proj.grs tools/sequoia.dom ${stalc2}/resources
19

20 21 22
lchn:
	scp PARSEME-FR/sequoia-ftb.deep_and_surf.cupt_parsemefr ${slchn}/resources/sequoia

Bruno Guillaume's avatar
Bruno Guillaume committed
23 24 25 26 27
ud:
	conll_tool split trunk/sequoia.surf.conll tools/dev.ids trunk/surf-dev.conll
	conll_tool split trunk/sequoia.surf.conll tools/test.ids trunk/surf-test.conll
	conll_tool split trunk/sequoia.surf.conll tools/train.ids trunk/surf-train.conll