duire

french missing verbs with prefix forms
git clone https://a3nm.net/git/duire/
Log | Files | Refs

duire.sh (526B)


      1 #!/bin/bash
      2 
      3 # run read_lefff LEFFF
      4 # then this script
      5 # or run read_words WORDS
      6 # then this script and pass "la_"
      7 
      8 PREF="$1"
      9 VERBS="${PREF}infinitives.txt"
     10 NOUNS="${PREF}nouns.txt"
     11 
     12 cat "$VERBS" | ./calcpref.py | tail -30 > "${PREF}prefixes.txt"
     13 ./duire.py "$VERBS" "${PREF}prefixes.txt" | head -300 > "${PREF}missing.txt"
     14 
     15 cat "$NOUNS" | ./calcpref.py > "${PREF}prefixes_nouns.txt"
     16 ./duire.py "$NOUNS" <(tail -60 "${PREF}prefixes_nouns.txt" | grep -v '^. ') |
     17   grep -vE '^.?.?.?:' | head -300 > "${PREF}missing_nouns.txt"
     18