-
Notifications
You must be signed in to change notification settings - Fork 35
/
release.sh
executable file
·31 lines (23 loc) · 1.8 KB
/
release.sh
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
# updating OpenWordnet-PT
python3 -m pyown.cli.update data/own-pt-* --wns dump/wn.jsonl --vts dump/votes.jsonl --sgs dump/suggestion-* -l pt -u arademaker vcvpaiva -o own-pt.nt -v
python3 -m pyown.cli.split own-pt.nt -l pt -e ttl -o data -v
# generating satistics.org
python3 -m pyown.cli.statistics --ownpt data/own-pt-* --ownen data/own-en-* -v
# generating LMFs
wget https://raw.githubusercontent.com/globalwordnet/cili/master/ili-map.ttl
python3 -m pyown.cli.lmf data/own-pt-* ili-map.ttl -li own-pt -lb OpenWordnet-PT -vr 1.0.0 -lg pt -cs 1.0 --email "arademaker@gmail.com" --url "http://openwordnet-pt.org/" --status "checked" --licence "http://creativecommons.org/licenses/by/4.0/" --citation "http://arademaker.github.io/bibliography/coling2012.html" -o own-pt-lmf-10.xml -v
python3 -m pyown.cli.lmf data/own-en-* ili-map.ttl -li own-en -lb OpenWordnet-EN -vr 1.0.0 -lg en -cs 1.0 --email "arademaker@gmail.com" --url "http://openwordnet-pt.org/" --status "checked" --licence "http://creativecommons.org/licenses/by/4.0/" --citation "http://arademaker.github.io/bibliography/coling2012.html" -o own-en-lmf-10.xml -v
# validanting LMFs
wget https://globalwordnet.github.io/schemas/WN-LMF-1.1.dtd
xmllint --noout --dtdvalid WN-LMF-1.1.dtd own-pt-lmf-10.xml
xmllint --noout --dtdvalid WN-LMF-1.1.dtd own-en-lmf-10.xml
cp own-pt-lmf-10.xml release/own-pt/own-pt-lmf.xml
cp own-pt-lmf-10.xml release/own/own-pt/own-pt-lmf.xml
cp own-en-lmf-10.xml release/own-en/own-en-lmf.xml
cp own-en-lmf-10.xml release/own/own-en/own-en-lmf.xml
cd release
tar cvfz own.tar.gz --exclude='.DS_Store' own/
tar cvfz own-en.tar.gz --exclude='.DS_Store' own-en/
tar cvfz own-pt.tar.gz --exclude='.DS_Store' own-pt/
echo "Edit the release/index.toml file!"
rm own-pt.nt log-update log-format ili-map.ttl* WN-LMF-1.1.dtd* own-pt-lmf-10.xml own-en-lmf-10.xml