From 120786256c1c80319c8791303e925059a5230b3b Mon Sep 17 00:00:00 2001
From: Milan Straka http(s)://lindat.mff.cuni.cz/services/udpipe/api/
.
The web service is freely available. Respect the -CC BY-NC-SA +CC BY-NC-SA licence of the models – explicit written permission of the authors is required for any commercial exploitation of the system. If you use the service, you agree that data obtained by us during such use can be used for further @@ -42,7 +42,7 @@
http://lindat.mff.cuni.cz/services/udpipe/api/models |
- |
https://lindat.mff.cuni.cz/services/udpipe/api/models |
+
Process given data as described in the User's Manual.
+Process given data as described in the User's Manual.
Parameter | Mandatory | Data type | Description |
---|---|---|---|
data | yes | string | Input text in UTF-8. |
model | no | string | Model to use; see model selection for model matching rules. |
tokenizer | no | string | If the option is present, the input is assumed to be in plain text and is tokenized. If the parameter has a value, it is passed to the tokenizer as tokenizer options. |
input | no | string (conllu / generic_tokenizer / horizontal / vertical ) | If the tokenizer is not used, the input is assumed to be in the specified input format (eventually with options); default conllu . |
input | no | string (conllu / generic_tokenizer / horizontal / vertical ) | If the tokenizer is not used, the input is assumed to be in the specified input format (eventually with options); default conllu . |
tagger | no | string | If the option is present, the input is POS tagged and lemmatized. If the parameter has a value, it is passed to the tagger. |
parser | no | string | If the option is present, the input is dependency parsed. If the parameter has a value, it is passed to the parser. |
output | no | string (conllu / horizontal / matxin / plaintext / vertical ) | The output format (eventually with options) to use; default conllu . |
output | no | string (conllu / horizontal / matxin / plaintext / vertical ) | The output format (eventually with options) to use; default conllu . |
-The response is in JSON format of the +The response is in JSON format of the following structure:
@@ -106,8 +106,8 @@Browser Examples
http://lindat.mff.cuni.cz/services/udpipe/api/process?tokenizer&tagger&parser&data=Děti pojedou k babičce. Už se těší. |
- |
https://lindat.mff.cuni.cz/services/udpipe/api/process?tokenizer&tagger&parser&data=Děti pojedou k babičce. Už se těší. |
+
curl
. Several examples follow:
curl --data 'tokenizer=&tagger=&parser=&data=Děti pojedou k babičce. Už se těší.' http://lindat.mff.cuni.cz/services/udpipe/api/process+
curl --data 'tokenizer=&tagger=&parser=&data=Děti pojedou k babičce. Už se těší.' https://lindat.mff.cuni.cz/services/udpipe/api/process
curl -F data=@input_file.txt -F tokenizer= -F tagger= -F parser= http://lindat.mff.cuni.cz/services/udpipe/api/process+
curl -F data=@input_file.txt -F tokenizer= -F tagger= -F parser= https://lindat.mff.cuni.cz/services/udpipe/api/process
curl -F data=@input_file.txt -F model=english -F tokenizer= -F tagger= -F parser= http://lindat.mff.cuni.cz/services/udpipe/api/process+
curl -F data=@input_file.txt -F model=english -F tokenizer= -F tagger= -F parser= https://lindat.mff.cuni.cz/services/udpipe/api/process
curl -F data=@input_file.txt -F model=english -F tokenizer= -F tagger= -F parser= http://lindat.mff.cuni.cz/services/udpipe/api/process | PYTHONIOENCODING=utf-8 python -c "import sys,json; sys.stdout.write(json.load(sys.stdin)['result'])"+
curl -F data=@input_file.txt -F model=english -F tokenizer= -F tagger= -F parser= https://lindat.mff.cuni.cz/services/udpipe/api/process | PYTHONIOENCODING=utf-8 python -c "import sys,json; sys.stdout.write(json.load(sys.stdin)['result'])"diff --git a/web/lindat-service/run.php b/web/lindat-service/run.php index 65ab06d..19d98b7 100644 --- a/web/lindat-service/run.php +++ b/web/lindat-service/run.php @@ -5,8 +5,8 @@
Description of the available methods is available in the API Documentation and the models are described in the -UDPipe 2 models list -and UDPipe 1 models list. +UDPipe 2 models list +and UDPipe 1 models list.