Skip to content

Commit

Permalink
Add Quality Estimation provider articles and fix sidebar caching (#538)
Browse files Browse the repository at this point in the history
* Add quality estimation provider articles and fix sidebar caching

* Change sentence structure and show api/tms name instead of id

* Add DeMT Estimate API to quality-estimation.json

* Modify text for each quality estimation api

---------

Co-authored-by: Tom from real python <tharrison748@gmail.com>
Co-authored-by: Cecilia Yalangozian <33723604+cefoo@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 21, 2023
1 parent ac6a88a commit a1b2145
Show file tree
Hide file tree
Showing 13 changed files with 2,810 additions and 17 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ defaults:
type: Article

# Just the Docs
remote_theme: pmarsceill/just-the-docs@v0.5.4
remote_theme: pmarsceill/just-the-docs@v0.6.1
logo: favicon.ico
color_scheme: swissred
search:
Expand Down
2 changes: 1 addition & 1 deletion _data/integrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@
]
},
{
"id": "phrase",
"id": "phrase-tms",
"name": "Phrase TMS",
"company": "phrase",
"tms_url": "https://phrase.com/products/phrase-tms/",
Expand Down
152 changes: 138 additions & 14 deletions _data/quality-estimation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
{
"id": "modelfront",
"name": "ModelFront",
"company": "modelfront",
"description": "Translation quality prediction",
"company": "ModelFront",
"tagline": "Translation quality prediction",
"languages": [
"af",
"sq",
Expand Down Expand Up @@ -164,8 +164,8 @@
{
"id": "kantanqes",
"name": "KantanQES",
"company": "kantan-ai",
"description": "Quality estimation score",
"company": "Kantan-AI",
"tagline": "Quality estimation score",
"languages": [
[
"ar",
Expand Down Expand Up @@ -722,9 +722,9 @@
},
{
"id": "phrase-mtqe",
"name": "Phrase - MTQE",
"company": "phrase",
"description": "Machine translation quality estimation",
"name": "Phrase MTQE",
"company": "Phrase",
"tagline": "Machine translation quality estimation",
"languages": [
[
"ar",
Expand Down Expand Up @@ -1636,7 +1636,7 @@
]
],
"only_compatible_mt_api": null,
"only_compatible_tms": "phrasetms",
"only_compatible_tms": "phrase-tms",
"customisation": false,
"urls": [
"https://support.phrase.com/hc/en-us/articles/5709672289180-MT-Quality-Estimation-TMS-",
Expand All @@ -1645,9 +1645,9 @@
},
{
"id": "omniscien-qe",
"name": "Omniscien - Confidence Scores",
"company": "omniscien-technologies",
"description": "Translation confidence scoring and quality estimates",
"name": "Omniscien Confidence Scores",
"company": "Omniscien-Technologies",
"tagline": "Translation confidence scoring and quality estimates",
"languages": [
[
"ar",
Expand Down Expand Up @@ -3954,11 +3954,135 @@
"https://languagestudio.attachments5.freshdesk.com/data/helpdesk/attachments/production/12038641906/original/LSRestAPI_v5_Reference_Document_v1.0_20180531.pdf?response-content-type=application%2Fpdf&Expires=1662038771&Signature=QrS5lsOBmkFloMMh70jqVO9Qud2IdwLyPI7AOLClr5GLVXjNdYz1k9CXNGoQbVtdflRJU42E5YvqMeZyTSV36VRhrKUUFvYFLPouJwt98hZ7p0MLmbqgCyONa2Agc3GNHBavYYRYPgfwzEi3D1sMZxuhgLqg-Fs82o-~hj~2dA~77aUNc0hGpTrUN5flpfSg1AYcHP7GreZiCrAehfBHmZRnnGrU7B8EQLfDKrCZKi6YB2JxpuJEFuXp8ynkE85wXx6FEW0svsqsXfsEUHXWAsAGR0tKkJ0r2ndkoJiOK0hroU3MWPY4Yc28eFKAbnTNfrbNetx0M1QCV411n3IWug__&Key-Pair-Id=APKAJ7JARUX3F6RQIXLA ]"
]
},
{
"id": "demt-estimate-api",
"name": "DeMT Estimate API",
"company": "TAUS",
"tagline": null,
"languages": [
"af",
"sq",
"am",
"ar",
"hy",
"as",
"az",
"bn",
"eu",
"be",
"bs",
"bg",
"my",
"ca",
"ceb",
"zh",
"co",
"hr",
"cs",
"da",
"nl",
"en",
"eo",
"et",
"fi",
"fr",
"gl",
"ka",
"de",
"el",
"gu",
"ht",
"ha",
"haw",
"he",
"hi",
"hmn",
"hu",
"is",
"ig",
"id",
"ga",
"it",
"ja",
"jv",
"kn",
"kk",
"km",
"rw",
"ko",
"ku",
"ky",
"lo",
"la",
"lv",
"lt",
"lb",
"mk",
"mg",
"ms",
"ml",
"mt",
"mr",
"mn",
"mi",
"ne",
"no",
"ny",
"or",
"fa",
"pl",
"pt",
"pa",
"ro",
"ru",
"sm",
"gd",
"sr",
"sn",
"si",
"sk",
"sl",
"so",
"st",
"es",
"su",
"sw",
"sv",
"tl",
"tg",
"ta",
"tt",
"te",
"th",
"bo",
"tr",
"tk",
"uk",
"ur",
"ug",
"uz",
"vi",
"cy",
"fy",
"wo",
"xh",
"yi",
"yo",
"zu"
],
"only_compatible_mt_api": null,
"only_compatible_tms": null,
"customisation": false,
"urls": [
"https://www.taus.net",
"https://www.taus.net/demt/quality-estimation"
]
},
{
"id": "translationhub",
"name": "Google Translation Hub - MTQP",
"company": "google",
"description": "Machine translation quality prediction scores",
"name": "Google Translation Hub MTQP",
"company": "Google",
"tagline": "Machine translation quality prediction scores",
"languages": [
[
"en",
Expand Down
159 changes: 159 additions & 0 deletions _layouts/quality_estimation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
---
layout: default
parent: Quality estimation
---

<h1>
{{ page.title }}
</h1>
<h2>
{{ page.description }}
</h2>
<hr>

<p>
{% if page.supported_languages.size > 0 %}
The <strong>{{ page.title }}</strong> quality estimation API supports <a href="#language-support">{{ page.supported_languages | size }} languages</a>.
{% else %}
The <strong>{{ page.title }}</strong> quality estimation API supports an unknown number of languages.
{% endif %}
</p>

{% if page.tagline %}
<blockquote>
<h3>
{{ page.tagline }}
</h3>
</blockquote>
{% endif %}

{{ content }}


{% if page.customisation %}
<p>
The <strong>{{ page.title }}</strong> quality estimation API supports <a href="/customisation">Customisation</a>.
{% endif %}
{% for tms in page.only_compatible_tms %}
{% if tms.name %}
{% for api in page.only_compatible_mt_api %}
{% if api.name %}

The <strong>{{ page.title }}</strong> quality estimation API only works with the <a href="/{{ tms.id }}">{{ tms.name }}</a> translation management system and the <a href="/{{ api.id }}">{{ api.name }}</a> machine translation API.

{% else %}

The <strong>{{ page.title }}</strong> quality estimation API only works with the <a href="/{{ tms.id }}">{{ tms.name }}</a> translation management system and any machine translation API.

{% endif %}
{% endfor %}
{% else %}
{% for api in page.only_compatible_mt_api %}
{% if api.name %}

The <strong>{{ page.title }}</strong> quality estimation API can work with any translation management system and the <a href="/{{ api.id }}">{{ api.name }}</a> machine translation API.

{% else %}

The <strong>{{ page.title }}</strong> quality estimation API can work with any translation management system and any machine translation API.

{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</p>


<blockquote>

<dl>

<dt>Language support</dt>
{% if page.supported_languages.size == 0 %}
<dd><a href="#language-support">Unknown number of languages</a></dd>
{% else %}
<dd><a href="#language-support">{{ page.supported_languages | size }} languages</a></dd>
{% endif %}

<dt>Integrations</dt>
{% for tms in page.only_compatible_tms %}
{% if tms.name %}
<dd><a href="/{{ tms.id }}">{{ tms.name }}</a></dd>
{% else %}
<dd>API integration with any translation management system</dd>
{% endif %}
{% endfor %}

<dt>Machine translation APIs</dt>
{% for api in page.only_compatible_mt_api %}
{% if api.name %}
<dd><a href="/{{ api.id }}">{{ api.name }}</a></dd>
{% else %}
<dd>API integration with any machine translation API</dd>
{% endif %}
{% endfor %}
</dl>

{% if page.urls.size > 0 %}
<hr/>
<ul>
{% for url in page.urls %}
<li>
<a href="{{ url }}" target="_blank">{{ url | remove_first: 'https://' | remove_first: 'http://' | remove_first: 'www.' | truncate: 50 }}</a>
</li>
{% endfor %}
</ul>
{% endif %}

</blockquote>


<section id="language-support">
<h2>Language support</h2>
{% if page.supported_languages.size > 0 %}

<details>
<summary>
{% if page.supported_languages_comment %}
{{ page.supported_languages_comment }}
{% endif %}
{% if page.supported_languages.size == 1 %}
{{ page.title }} supports <strong">1</strong> language.
{% else %}
{{ page.title }} supports <strong>{{ page.supported_languages | size }}</strong> languages.
{% endif %}
<p class="preview hint">
{{ page.supported_languages | slice: 0, 5 | map: 'name' | join: ', ' }}
{% if page.supported_languages.size > 5 %}, …{% endif %}
</p>
</summary>
<ul>
{% for language in page.supported_languages %}
<li>
{% if language.slug %}
<a href="/{{ language.slug }}">
<code>{{ language.code }}</code>
{{ language.name }}
{% if language.variant_name %}
| {{ language.variant_name }}
{% endif %}
</a>
{% else %}
<a href="https://en.wikipedia.org/wiki/ISO_639:{{ language.base_code }}" target="_blank">
<code>{{ language.code }}</code>
{% if language.variant_name %}
| {{ language.variant_name }}
{% endif %}
</a>
{% endif %}
</li>
{% endfor %}
</ul>
</details>

{% else %}

<p>{{ page.title }} supports an unknown number of languages.</p>
</section>

{% endif %}
Loading

0 comments on commit a1b2145

Please sign in to comment.