Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neeme Kahusk
Lightewn
Commits
c5cf16ee
Commit
c5cf16ee
authored
Feb 25, 2015
by
Neeme Kahusk
Browse files
totrans.sh
parent
926390a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/totrans.sh
0 → 100755
View file @
c5cf16ee
#!/bin/bash
# usage: vistnoun.sh <start> <pos>
# ulimit will come from data file
# $1 => start
# $2 => POS
i
=
$1
finpath
=
$HOME
/Wordnet/FinWN/fiwn-2.0/dict
pwnpath
=
$HOME
/Wordnet/WordNet-3.0/dict/
ulimitfin
=
$[
$(
cat
$finpath
/data.
$2
|egrep
-v
'^ '
|wc
-l
)
-1
]
echo
$ulimitfin
ulimitpwn
=
$[
$(
cat
$pwnpath
/data.
$2
|egrep
-v
'^ '
|wc
-l
)
-1
]
echo
$ulimitpwn
ulimit
=
$ulimitpwn
while
[
$i
-lt
$ulimit
]
do
j
=
$[$i
+200]
if
[
$j
-ge
$ulimit
]
then
j
=
$[$ulimit
+1]
fi
echo
$i
$j
python trans.py
-p
$2
-r
$prefix
-s
$i
-e
$j
i
=
$[$i
+200]
done
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment