lexique2sql.sh (318B)
1 #!/bin/bash 2 3 cd "$( dirname "$0" )" 4 5 cat - additions | # add custom exceptions 6 sort -k1,2 | # sort to aggregate duplicates TODO break ties by frequency 7 cut -f 1-8 | # select relevant fields 8 awk '{FS=" "; OFS=" "; 9 print $1, $2, $3, $4, ($5+$6)/2 + 100*($7+$8)/2}' | # aggregate frequencies 10 ./lexique2sql.py