Last active
June 29, 2017 09:23
-
-
Save interrogator/273e74e740a1161db9174f18016b6658 to your computer and use it in GitHub Desktop.
Using TüNDRA API to get matches from given CONLL-U V2
This file contains hidden or 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
# query a conll file | |
CONLLU2_FILE="/Users/danielmcdonald/Downloads/test.conllu" | |
QUERY="[pos=/V.*/]" | |
LANGUAGE="german" | |
API="https://weblicht.sfs.uni-tuebingen.de/tundra-beta/api/query/visres" | |
curl -X POST -F "file=@$CONLLU2_FILE" -F "query=$QUERY" -F "lang=$LANGUAGE" "$API" > api-test.json | |
# query a treebank | |
ID="UD_French" | |
QUERY="[pos=/V.*/]" | |
API2="https://weblicht.sfs.uni-tuebingen.de/tundra-beta/api/query/allresults" | |
curl -X POST -F "query=$QUERY" -F "id=$ID" "$API2" > api-test2.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment