Skip to content

Commit

Permalink
Change all http: into https:
Browse files Browse the repository at this point in the history
  • Loading branch information
foxik committed Sep 9, 2024
1 parent 410f243 commit 1207862
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
28 changes: 14 additions & 14 deletions web/lindat-service/api-reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<code>http(s)://lindat.mff.cuni.cz/services/udpipe/api/</code>.</p>

<p>The web service is freely available. Respect the
<a href="http://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA</a>
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA</a>
licence of the models &ndash; <b>explicit written permission of the authors is
required for any commercial exploitation of the system</b>. If you use the
service, you agree that data obtained by us during such use can be used for further
Expand All @@ -42,7 +42,7 @@
</tr>
<tr>
<td><a href="#process">process</a></td>
<td><a href="http://ufal.mff.cuni.cz/udpipe/users-manual#run_udpipe">process supplied data</a></td>
<td><a href="https://ufal.mff.cuni.cz/udpipe/users-manual#run_udpipe">process supplied data</a></td>
<td>GET/POST</td>
</tr>
</table>
Expand All @@ -58,8 +58,8 @@
<h4>Browser Example</h4>

<table style='width: 100%'>
<tr><td style='vertical-align: middle'><pre style='margin-bottom: 0; white-space: pre-wrap' class="prettyprint lang-html">http://lindat.mff.cuni.cz/services/udpipe/api/models</pre></td>
<td style='vertical-align: middle; width: 6em'><button style='width: 100%' type="button" class="btn btn-success btn-xs" onclick="window.open('http://lindat.mff.cuni.cz/services/udpipe/api/models')">try&nbsp;this</button></td></tr>
<tr><td style='vertical-align: middle'><pre style='margin-bottom: 0; white-space: pre-wrap' class="prettyprint lang-html">https://lindat.mff.cuni.cz/services/udpipe/api/models</pre></td>
<td style='vertical-align: middle; width: 6em'><button style='width: 100%' type="button" class="btn btn-success btn-xs" onclick="window.open('https://lindat.mff.cuni.cz/services/udpipe/api/models')">try&nbsp;this</button></td></tr>
</table>

<h4>Example JSON Response</h4>
Expand All @@ -77,21 +77,21 @@

<h3>Method <a id='process'>process</a></h3>

<p>Process given data as described <a href="http://ufal.mff.cuni.cz/udpipe/users-manual#run_udpipe">in the User's Manual</a>.</p>
<p>Process given data as described <a href="https://ufal.mff.cuni.cz/udpipe/users-manual#run_udpipe">in the User's Manual</a>.</p>

<table class='table table-striped table-bordered'>
<tr><th>Parameter</th><th>Mandatory</th><th>Data type</th><th>Description</th></tr>
<tr><td>data</td><td>yes</td><td>string</td><td>Input text in <b>UTF-8</b>.</td></tr>
<tr><td>model</td><td>no</td><td>string</td><td>Model to use; see <a href="#model_selection">model selection</a> for model matching rules.</td></tr>
<tr><td>tokenizer</td><td>no</td><td>string</td><td>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 <a href="https://ufal.mff.cuni.cz/udpipe/users-manual#run_udpipe_tokenizer">tokenizer options</a>.</td></tr>
<tr><td>input</td><td>no</td><td>string (<code>conllu</code> / <code>generic_tokenizer</code> / <code>horizontal</code> / <code>vertical</code>)</td><td>If the tokenizer is not used, the input is assumed to be in the specified <a href="http://ufal.mff.cuni.cz/udpipe/users-manual#run_udpipe_input">input format (eventually with options)</a>; default <code>conllu</code>.</td></tr>
<tr><td>input</td><td>no</td><td>string (<code>conllu</code> / <code>generic_tokenizer</code> / <code>horizontal</code> / <code>vertical</code>)</td><td>If the tokenizer is not used, the input is assumed to be in the specified <a href="https://ufal.mff.cuni.cz/udpipe/users-manual#run_udpipe_input">input format (eventually with options)</a>; default <code>conllu</code>.</td></tr>
<tr><td>tagger</td><td>no</td><td>string</td><td>If the option is present, the input is POS tagged and lemmatized. If the parameter has a value, it is passed to the tagger.</td></tr>
<tr><td>parser</td><td>no</td><td>string</td><td>If the option is present, the input is dependency parsed. If the parameter has a value, it is passed to the parser.</td></tr>
<tr><td>output</td><td>no</td><td>string (<code>conllu</code> / <code>horizontal</code> / <code>matxin</code> / <code>plaintext</code> / <code>vertical</code>)</td><td>The <a href="http://ufal.mff.cuni.cz/udpipe/users-manual#run_udpipe_output">output format (eventually with options)</a> to use; default <code>conllu</code>.</td></tr>
<tr><td>output</td><td>no</td><td>string (<code>conllu</code> / <code>horizontal</code> / <code>matxin</code> / <code>plaintext</code> / <code>vertical</code>)</td><td>The <a href="https://ufal.mff.cuni.cz/udpipe/users-manual#run_udpipe_output">output format (eventually with options)</a> to use; default <code>conllu</code>.</td></tr>
</table>

<p>
The response is in <a href="http://en.wikipedia.org/wiki/JSON">JSON</a> format of the
The response is in <a href="https://en.wikipedia.org/wiki/JSON">JSON</a> format of the
following structure:</p>

<pre class="prettyprint lang-json">
Expand All @@ -106,8 +106,8 @@

<h4>Browser Examples</h4>
<table style='width: 100%'>
<tr><td style='vertical-align: middle'><pre style='margin-bottom: 0; white-space: pre-wrap' class="prettyprint lang-html">http://lindat.mff.cuni.cz/services/udpipe/api/process?tokenizer&amp;tagger&amp;parser&amp;data=Děti pojedou k babičce. Už se těší.</pre></td>
<td style='vertical-align: middle; width: 6em'><button style='width: 100%' type="button" class="btn btn-success btn-xs" onclick="window.open('http://lindat.mff.cuni.cz/services/udpipe/api/process?tokenizer&amp;tagger&amp;parser&amp;data=Děti pojedou k babičce. Už se těší.')">try&nbsp;this</button></td></tr>
<tr><td style='vertical-align: middle'><pre style='margin-bottom: 0; white-space: pre-wrap' class="prettyprint lang-html">https://lindat.mff.cuni.cz/services/udpipe/api/process?tokenizer&amp;tagger&amp;parser&amp;data=Děti pojedou k babičce. Už se těší.</pre></td>
<td style='vertical-align: middle; width: 6em'><button style='width: 100%' type="button" class="btn btn-success btn-xs" onclick="window.open('https://lindat.mff.cuni.cz/services/udpipe/api/process?tokenizer&amp;tagger&amp;parser&amp;data=Děti pojedou k babičce. Už se těší.')">try&nbsp;this</button></td></tr>
</table>

<hr />
Expand Down Expand Up @@ -141,15 +141,15 @@
The described API can be comfortably used by <code>curl</code>. Several examples follow:

<h3>Passing Input on Command Line (if UTF-8 locale is being used)</h3>
<pre style="white-space: pre-wrap" class="prettyprint lang-sh">curl --data 'tokenizer=&tagger=&parser=&data=Děti pojedou k babičce. Už se těší.' http://lindat.mff.cuni.cz/services/udpipe/api/process</pre>
<pre style="white-space: pre-wrap" class="prettyprint lang-sh">curl --data 'tokenizer=&tagger=&parser=&data=Děti pojedou k babičce. Už se těší.' https://lindat.mff.cuni.cz/services/udpipe/api/process</pre>

<h3>Using Files as Input (files must be in UTF-8 encoding)</h3>
<pre style="white-space: pre-wrap" class="prettyprint lang-sh">curl -F data=@input_file.txt -F tokenizer= -F tagger= -F parser= http://lindat.mff.cuni.cz/services/udpipe/api/process</pre>
<pre style="white-space: pre-wrap" class="prettyprint lang-sh">curl -F data=@input_file.txt -F tokenizer= -F tagger= -F parser= https://lindat.mff.cuni.cz/services/udpipe/api/process</pre>

<h3>Specifying Model Parameters</h3>
<pre style="white-space: pre-wrap" class="prettyprint lang-sh">curl -F data=@input_file.txt -F model=english -F tokenizer= -F tagger= -F parser= http://lindat.mff.cuni.cz/services/udpipe/api/process</pre>
<pre style="white-space: pre-wrap" class="prettyprint lang-sh">curl -F data=@input_file.txt -F model=english -F tokenizer= -F tagger= -F parser= https://lindat.mff.cuni.cz/services/udpipe/api/process</pre>

<h3>Converting JSON Result to Plain Text</h3>
<pre style="white-space: pre-wrap" class="prettyprint lang-sh">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'])"</pre>
<pre style="white-space: pre-wrap" class="prettyprint lang-sh">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'])"</pre>

<?php require('footer.php') ?>
22 changes: 11 additions & 11 deletions web/lindat-service/run.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<p>
Description of the available methods is available in the <a href="api-reference.php">API
Documentation</a> and the models are described in the
<a href="http://ufal.mff.cuni.cz/udpipe/2/models">UDPipe 2 models list</a>
and <a href="http://ufal.mff.cuni.cz/udpipe/1/models">UDPipe 1 models list</a>.
<a href="https://ufal.mff.cuni.cz/udpipe/2/models">UDPipe 2 models list</a>
and <a href="https://ufal.mff.cuni.cz/udpipe/1/models">UDPipe 1 models list</a>.
</p>

<script type="text/javascript"><!--
Expand Down Expand Up @@ -299,7 +299,7 @@ function updateModels() {
<div class="panel-body">

<p>The service is freely available for testing. Respect the
<a href="http://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA</a>
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA</a>
licence of the models &ndash; <b>explicit written permission of the authors is
required for any commercial exploitation of the system</b>. If you use the
service, you agree that data obtained by us during such use can be used for further
Expand All @@ -310,15 +310,15 @@ function updateModels() {
<div class="form-group row">
<label class="col-sm-2 control-label">Model:</label>
<div class="col-sm-10">
<label class="radio-inline" data-udpipe="2"><input name="family" type="radio" value="-ud-2.12-" onchange="updateModels()" checked />UD 2.12 (<a href="http://ufal.mff.cuni.cz/udpipe/2/models#universal_dependencies_212_models">description</a>)</label>
<label class="radio-inline" data-udpipe="2"><input name="family" type="radio" value="-ud-2.10-" onchange="updateModels()" />UD 2.10 (<a href="http://ufal.mff.cuni.cz/udpipe/2/models#universal_dependencies_210_models">description</a>)</label>
<label class="radio-inline" data-udpipe="2"><input name="family" type="radio" value="-ud-2.6-" onchange="updateModels()" />UD 2.6 (<a href="http://ufal.mff.cuni.cz/udpipe/2/models#universal_dependencies_26_models">description</a>)</label>
<label class="radio-inline" data-udpipe="2"><input name="family" type="radio" value="-ud-2.12-" onchange="updateModels()" checked />UD 2.12 (<a href="https://ufal.mff.cuni.cz/udpipe/2/models#universal_dependencies_212_models">description</a>)</label>
<label class="radio-inline" data-udpipe="2"><input name="family" type="radio" value="-ud-2.10-" onchange="updateModels()" />UD 2.10 (<a href="https://ufal.mff.cuni.cz/udpipe/2/models#universal_dependencies_210_models">description</a>)</label>
<label class="radio-inline" data-udpipe="2"><input name="family" type="radio" value="-ud-2.6-" onchange="updateModels()" />UD 2.6 (<a href="https://ufal.mff.cuni.cz/udpipe/2/models#universal_dependencies_26_models">description</a>)</label>
<label class="radio-inline" data-udpipe="2"><input name="family" type="radio" value="-pdtc1.0-" onchange="updateModels()" />PDT-C 1.0 (<a href="https://ufal.mff.cuni.cz/udpipe/2/models#czech_pdtc1.0_model">description</a>)</label>
<label class="radio-inline" data-udpipe="2"><input name="family" type="radio" value="-evalatin2" onchange="updateModels()" />EvaLatin (24/<a href="http://ufal.mff.cuni.cz/udpipe/2/models#evalatin20_models">20</a>)</label>
<label class="radio-inline" data-udpipe="1" style="display: none"><input name="family" type="radio" value="-ud-2.5-" onchange="updateModels()" />UD 2.5 (<a href="http://ufal.mff.cuni.cz/udpipe/1/models#universal_dependencies_25_models">description</a>)</label>
<label class="radio-inline" data-udpipe="1" style="display: none"><input name="family" type="radio" value="-ud-2.4-" onchange="updateModels()" />UD 2.4 (<a href="http://ufal.mff.cuni.cz/udpipe/1/models#universal_dependencies_24_models">description</a>)</label>
<label class="radio-inline" data-udpipe="1" style="display: none"><input name="family" type="radio" value="-ud-2.0-1" onchange="updateModels()" />UD 2.0 (<a href="http://ufal.mff.cuni.cz/udpipe/1/models#universal_dependencies_20_models">description</a>)</label>
<label class="radio-inline" data-udpipe="1" style="display: none"><input name="family" type="radio" value="-ud-1.2-" onchange="updateModels()" />UD 1.2 (<a href="http://ufal.mff.cuni.cz/udpipe/1/models#universal_dependencies_12_models">description</a>)</label>
<label class="radio-inline" data-udpipe="2"><input name="family" type="radio" value="-evalatin2" onchange="updateModels()" />EvaLatin (24/<a href="https://ufal.mff.cuni.cz/udpipe/2/models#evalatin20_models">20</a>)</label>
<label class="radio-inline" data-udpipe="1" style="display: none"><input name="family" type="radio" value="-ud-2.5-" onchange="updateModels()" />UD 2.5 (<a href="https://ufal.mff.cuni.cz/udpipe/1/models#universal_dependencies_25_models">description</a>)</label>
<label class="radio-inline" data-udpipe="1" style="display: none"><input name="family" type="radio" value="-ud-2.4-" onchange="updateModels()" />UD 2.4 (<a href="https://ufal.mff.cuni.cz/udpipe/1/models#universal_dependencies_24_models">description</a>)</label>
<label class="radio-inline" data-udpipe="1" style="display: none"><input name="family" type="radio" value="-ud-2.0-1" onchange="updateModels()" />UD 2.0 (<a href="https://ufal.mff.cuni.cz/udpipe/1/models#universal_dependencies_20_models">description</a>)</label>
<label class="radio-inline" data-udpipe="1" style="display: none"><input name="family" type="radio" value="-ud-1.2-" onchange="updateModels()" />UD 1.2 (<a href="https://ufal.mff.cuni.cz/udpipe/1/models#universal_dependencies_12_models">description</a>)</label>
</div>
</div>
<div class="form-group row">
Expand Down

0 comments on commit 1207862

Please sign in to comment.