Commit 9e535cf8 authored by Neeme Kahusk's avatar Neeme Kahusk
Browse files

viimased sätingud

parent e618f4b8
......@@ -12,5 +12,5 @@ __email__ = "neeme.kahusk@ut.ee"
import os
# PWN_PATH = '{}/WordNet-3.0/dict'.format(os.environ['HOME'])
# PWN_PATH = '%s/Wordnet/WordNet-3.0/dict' % (os.environ['HOME'])
PWN_PATH = '%s/Wordnet/FinWN/fiwn-2.0/dict' % (os.environ['HOME'])
PWN_PATH = '%s/Wordnet/WordNet-3.0/dict' % (os.environ['HOME'])
# PWN_PATH = '%s/Wordnet/FinWN/fiwn-2.0/dict' % (os.environ['HOME'])
......@@ -92,7 +92,7 @@ POINTER_SYMBOLS = { # (symbol, pos):
'vis':'member_of_topic'},
('-u','r'):{'gloss':'Member of this domain - USAGE',
'vis':'member_of_usage'},
('+','r'):{'gloss':'Derivationally related form','vis':'derivated_from'}, # NON-DOCUMENTED
}
def deadj(iStr):
......
#!/bin/bash
# usage: vistnoun.sh <start> <pos>
# ulimit will come from data file
# $1 => start
# $2 => POS
# $3 => lang
i=$1
# wnpath=$HOME/Wordnet/WordNet-3.0/dict/
wnpath=$HOME/Wordnet/FinWN/fiwn-2.0/dict
wnpath=$HOME/Wordnet/WordNet-3.0/dict/
# wnpath=$HOME/Wordnet/FinWN/fiwn-2.0/dict
ulimit=$[$(cat $wnpath/data.$2|egrep -v '^ '|wc -l)-1]
echo $ulimit
......@@ -14,6 +17,6 @@ do
then j=$[$ulimit+1]
fi
echo $i $j
python visdic.py -p $2 -r 'fin-20' -s $i -e $j
python visdic.py -p $2 -r 'pwn-30' -s $i -e $j
i=$[$i+200]
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment