|
|
|
|
|
DATA=abdnormal.txt |
|
default: all |
|
|
|
clean: |
|
|
|
backup: |
|
|
|
|
|
all: |
|
|
|
build:DATA=abdnormal |
|
build: |
|
python scripts/analyze_doc.py -f output/${DATA}.unq -o output/${DATA}.csv |
|
|
|
|
|
publish: |
|
git push origin master |
|
spellcheck: |
|
|
|
|
|
suggest: |
|
|
|
grep "^& " output/${DATA}.1.tmp > output/${DATA}.tmp |
|
sed "s/: /\t/g" -i output/${DATA}.tmp |
|
|
|
cut -f1 output/${DATA}.tmp > output/${DATA}.input.tmp |
|
sed "s/&//g" -i output/${DATA}.input.tmp |
|
sed "s/ /\t/g" -i output/${DATA}.input.tmp |
|
|
|
|
|
cut -f2 output/${DATA}.tmp > output/${DATA}.suggest.tmp |
|
sed "s/, /;/g" -i output/${DATA}.suggest.tmp |
|
|
|
echo "word\tn1\tn2\tsuggest"| cat >output/${DATA}.csv |
|
paste output/${DATA}.input.tmp output/${DATA}.suggest.tmp >> output/${DATA}.csv |
|
rm output/*.tmp |
|
|
|
join: |
|
python scripts/join.py -c join -f samples/${DATA} -f2 output/${DATA}.csv -o output/${DATA}.corpus.csv |
|
|
|
suggest2: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cp tests/output/abd.1.tmp tests/output/abd.tmp |
|
|
|
|
|
sed 1d -i tests/output/abd.tmp |
|
|
|
sed -e '/^$$/d' -i tests/output/abd.tmp |
|
sed "s/: /\t/g" -i tests/output/abd.tmp |
|
|
|
cut -f1 tests/output/abd.tmp >tests/output/input.tmp |
|
|
|
sed "s/ /\t/g" -i tests/output/input.tmp |
|
|
|
|
|
cut -f2 tests/output/abd.tmp >tests/output/suggest.tmp |
|
sed "s/, /;/g" -i tests/output/suggest.tmp |
|
|
|
|
|
|
|
|
|
|
|
|