Last active
February 25, 2019 16:24
-
-
Save acetylSv/a8ff5ce9a16d5cf5eac562269fe68acf to your computer and use it in GitHub Desktop.
a script to call CMU_lexicon API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
DIR='./txt_parts' | |
for filename in $DIR/* | |
do | |
echo ${filename} | |
curl -X POST -F "wordfile=@${filename}" \ | |
-H "ContentType=multipart/form-data" http://www.speech.cs.cmu.edu/cgi-bin/tools/logios/lextool.pl \ | |
-o ${filename}_res.txt | |
sleep 3 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment