From 120786256c1c80319c8791303e925059a5230b3b Mon Sep 17 00:00:00 2001 From: Milan Straka Date: Mon, 9 Sep 2024 16:16:49 +0200 Subject: [PATCH] Change all http: into https: --- web/lindat-service/api-reference.php | 28 ++++++++++++++-------------- web/lindat-service/run.php | 22 +++++++++++----------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/web/lindat-service/api-reference.php b/web/lindat-service/api-reference.php index 3ced67f..9aec362 100644 --- a/web/lindat-service/api-reference.php +++ b/web/lindat-service/api-reference.php @@ -17,7 +17,7 @@ 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 @@ process - process supplied data + process supplied data GET/POST @@ -58,8 +58,8 @@

Browser Example

- - + +
http://lindat.mff.cuni.cz/services/udpipe/api/models
https://lindat.mff.cuni.cz/services/udpipe/api/models

Example JSON Response

@@ -77,21 +77,21 @@

Method process

-

Process given data as described in the User's Manual.

+

Process given data as described in the User's Manual.

- + - +
ParameterMandatoryData typeDescription
datayesstringInput text in UTF-8.
modelnostringModel to use; see model selection for model matching rules.
tokenizernostringIf 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.
inputnostring (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.
inputnostring (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.
taggernostringIf the option is present, the input is POS tagged and lemmatized. If the parameter has a value, it is passed to the tagger.
parsernostringIf the option is present, the input is dependency parsed. If the parameter has a value, it is passed to the parser.
outputnostring (conllu / horizontal / matxin / plaintext / vertical)The output format (eventually with options) to use; default conllu.
outputnostring (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ěší.

@@ -141,15 +141,15 @@ The described API can be comfortably used by curl. Several examples follow:

Passing Input on Command Line (if UTF-8 locale is being used)

-
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

Using Files as Input (files must be in UTF-8 encoding)

-
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

Specifying Model Parameters

-
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

Converting JSON Result to Plain Text

-
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.