diff --git a/Gemfile.lock b/Gemfile.lock index 151ee4810..7d082a356 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -275,7 +275,7 @@ DEPENDENCIES github-pages html-proofer jekyll-feed (~> 0.12) - jekyll-include-cache + jekyll-include-cache jekyll-redirect-from jekyll-seo-tag nokogiri (>= 1.6.7.rc) diff --git a/_data/integrations.json b/_data/integrations.json index 12e7061ef..8f7a729df 100644 --- a/_data/integrations.json +++ b/_data/integrations.json @@ -158,10 +158,11 @@ } } ], - "quality_estimation_integrations": [ + "quality_estimation_integrations":[ { - "modelfront": null, - "custom": true + "modelfront": { + "custom": true + } } ], "local_api_support": true, @@ -727,10 +728,11 @@ }, "yandex" ], - "quality_estimation_integrations": [ + "quality_estimation_integrations":[ { - "phrase-mtqe": null, - "custom": false + "phrase-mtqe": { + "custom": false + } } ], "routing": true @@ -1404,13 +1406,16 @@ } } ], - "quality_estimation_integrations": [ + "quality_estimation_integrations":[ { - "modelfront": null, - "custom": true + "modelfront": { + "custom": true + } } ], + "edit_distance": true + }, { "id": "wordbee", diff --git a/_layouts/aggregator.html b/_layouts/aggregator.html index c8e4c5fd8..e91e8552f 100644 --- a/_layouts/aggregator.html +++ b/_layouts/aggregator.html @@ -11,10 +11,14 @@
- The {{ page.title }} aggregator supports {{ page.supported_apis | size }} machine translation APIs. + The {{ page.title }} aggregator supports {{ page.supported_apis | size }} machine translation APIs.
++ {{ content }} -+
{% if page.urls.size > 0 %}- Supported APIs
+- {{ page.supported_apis | size }} APIs
+
@@ -25,16 +29,11 @@
{% endif %} - -{% endfor %}
-
-- Supported APIs
-- {{ page.supported_apis | size }} APIs
-
{% if page.integrations.size == 1 %} - There is 1 integration with a translation management system. - {% endif %} + 1 machine translation management system has integrated the {{ page.title }} machine translation API.{% endif %} {% if page.integrations.size > 1 %} - {{ page.integrations | size }} machine translation management systems have {{ page.title }} integrations + {{ page.integrations | size }} machine translation management systems have {{ page.title }} integrations. {% endif %}
@@ -168,7 +167,6 @@{% if page.api_integrations.size == 1 %} - The {{ page.title }} {{ page.type_description }} has {{ page.api_integrations | size }} machine translation API integration. + 1 machine translation API has been integrated by the {{ page.title }} translation management system. {% else %} - The {{ page.title }} {{ page.type_description }} has {{ page.api_integrations | size }} machine translation API integrations. + The {{ page.title }} {{ page.type_description }} has {{ page.api_integrations | size }} machine translation API integrations. {% endif %}
++ {% if page.quality_estimation_integrations.size == 1 %} + 1 quality estimation API has been integrated by the {{ page.title }} translation management system. + {% else %} + The {{ page.title }} translation management system has {{ page.quality_estimation_integrations | size }} quality estimation API integrations. + {% endif %} +
+
- API support
- {% if page.api_integrations.size == 1 %} -- 1 API
- {% else %} -- {{ page.api_integrations | size }} APIs
- {% endif %} - - {% if page.open-source %} -- Open-source
- {% endif %} +- + {% if page.api_integrations.size > 0 %} + {{ page.api_integrations.size }} machine translation API{% if page.api_integrations.size > 0 %}s{% endif %}{% if page.quality_estimation_integrations.size > 0 %},{% endif %} + {% endif %} +
+- + {% if page.quality_estimation_integrations.size > 0 %} + {{ page.quality_estimation_integrations.size }} quality estimation API{% if page.quality_estimation_integrations.size > 1 %}s{% endif %} + {% endif %} +
+ + +
@@ -45,8 +57,8 @@{{ content }} -
- API support
++ + +Machine translation
{{ page.api_integrations | size }} machine translation API integrations are available for {{ page.title }}. @@ -58,11 +70,7 @@
API support
{% for api in page.api_integrations %}
- - {% if api.plugin %} - {{ api.name }} (plugin) - {% else %} - {{ api.name }} - {% endif %} + {{ api.name }} {% if api.plugin %}(plugin){% endif %} {% if api.custom or api.glossary or api.formality %} {% if api.custom %}| fine-tuning support{% endif %} {% if api.glossary %}| glossary support{% endif %} @@ -73,6 +81,30 @@
API support
+ + + {% if page.fuzzy_repair %}Quality estimation
++++ {{ page.quality_estimation_integrations| size }} Quality estimation API integrations are available for {{ page.title }}. +
++ {{page.quality_estimation_integrations | slice: 0, 5 | map: 'name' | join: ', ' }} + {% if page.quality_estimation_integrations > 5 %}, …{% endif %} +
++ {% for qe in page.quality_estimation_integrations %} +
- + {{ qe.name }} {% if qe.plugin %}(plugin){% endif %} + {% if qe.custom %} + {% if qe.custom %}| fine-tuning support{% endif %} + {% endif %} +
+ {% endfor %} +Other features
{{ page.description }} offers fuzzy repair with machine translation. diff --git a/_layouts/language.html b/_layouts/language.html index 4e36658f1..a6fb4974a 100644 --- a/_layouts/language.html +++ b/_layouts/language.html @@ -13,7 +13,7 @@
- Machine translation for the {{ page.title }} language is supported by {{ page.supported_apis | size }} machine translation APIs. + Machine translation for the {{ page.title }} language is supported by {{ page.supported_apis | size }} machine translation APIs.
@@ -53,7 +53,7 @@{{ content }} -
+ API support
diff --git a/_layouts/quality_estimation.html b/_layouts/quality_estimation.html index 41e209924..ca9772ade 100644 --- a/_layouts/quality_estimation.html +++ b/_layouts/quality_estimation.html @@ -19,6 +19,14 @@
{% endif %} +
+ {% if page.integrations.size == 1 %} + 1 machine translation management system has integrated the {{ page.title }} quality estimation API. + {% else %} + {{ page.integrations | size }} machine translation management systems have integrated the {{ page.title }} quality estimation API. + {% endif %} +
+ {% if page.tagline %}@@ -34,40 +42,45 @@
The {{ page.title }} quality estimation API supports Customisation. {% endif %} - {% for tms in page.only_compatible_tms %} - {% if tms.name %} - {% for api in page.only_compatible_mt_api %} - {% if api.name %} - - The {{ page.title }} quality estimation API only works with the {{ tms.name }} translation management system and the {{ api.name }} machine translation API. - +{% if page.only_compatible_tms != nil %} + {% if page.only_compatible_tms.size > 1 %} + {% if page.only_compatible_mt_api != nil %} + {% if page.only_compatible_mt_api.size > 1 %} + The {{ page.title }} quality estimation API can work with {{ page.only_compatible_tms.size }} translation management systems and {{ page.only_compatible_mt_api.size }} machine translation APIs. {% else %} - - The {{ page.title }} quality estimation API only works with the {{ tms.name }} translation management system and any machine translation API. - + The {{ page.title }} quality estimation API can work with {{ page.only_compatible_tms.size }} translation management systems and the {{ page.only_compatible_mt_api[0].name }} machine translation API. {% endif %} - {% endfor %} + {% else %} + The {{ page.title }} quality estimation API can work with {{ page.only_compatible_tms.size }} translation management systems and any machine translation API. + {% endif %} {% else %} - {% for api in page.only_compatible_mt_api %} - {% if api.name %} - - The {{ page.title }} quality estimation API can work with any translation management system and the {{ api.name }} machine translation API. - + {% if page.only_compatible_mt_api != nil %} + {% if page.only_compatible_mt_api.size > 1 %} + The {{ page.title }} quality estimation API only works with the {{ page.only_compatible_tms[0].name }} translation management system and {{ page.only_compatible_mt_api.size }} machine translation APIs. {% else %} - - The {{ page.title }} quality estimation API can work with any translation management system and any machine translation API. - + The {{ page.title }} quality estimation API only works with the {{ page.only_compatible_tms[0].name }} translation management system and the {{ page.only_compatible_mt_api[0].name }} machine translation API. {% endif %} - {% endfor %} + {% else %} + The {{ page.title }} quality estimation API only works with the {{ page.only_compatible_tms[0].name }} translation management system and any machine translation API. + {% endif %} {% endif %} -{% endfor %} +{% else %} + {% if page.only_compatible_mt_api != nil %} + {% if page.only_compatible_mt_api.size > 1 %} + The {{ page.title }} quality estimation API can work with any translation management system and {{ page.only_compatible_mt_api.size }} machine translation APIs. + {% else %} + The {{ page.title }} quality estimation API can work with any translation management system and the {{ page.only_compatible_mt_api[0].name }} machine translation API. + {% endif %} + {% else %} + The {{ page.title }} quality estimation API can work with any translation management system and any machine translation API. + {% endif %} +{% endif %}
-
+ {% if page.only_compatible_mt_api != nil %} + {% for api in page.only_compatible_mt_api %} +- Language support
{% if page.supported_languages.size == 0 %}- Unknown number of languages
@@ -76,23 +89,27 @@{% endif %}
- Integrations
- {% for tms in page.only_compatible_tms %} - {% if tms.name %} -- {{ tms.name }}
- {% else %} -- API integration with any translation management system
- {% endif %} - {% endfor %} + {% if page.only_compatible_tms != nil %} + {% for tms in page.only_compatible_tms %} +- + {{ tms.name }} +
+ {% endfor %} + {% else %} +- API integration with any translation management system
+ {% endif %}- Machine translation APIs
- {% for api in page.only_compatible_mt_api %} - {% if api.name %} -- {{ api.name }}
- {% else %} -- API integration with any machine translation API
- {% endif %} - {% endfor %} -+ {{ api.name }} + + {% endfor %} + {% else %} +API integration with any machine translation API + {% endif %} + {% if page.urls.size > 0 %}
@@ -111,7 +128,6 @@
-{% endif %} + + Language support
{% if page.supported_languages.size > 0 %} -- -{% else %} - -{% if page.supported_languages_comment %} @@ -150,10 +166,32 @@
Language support
{% endfor %}{{ page.title }} supports an unknown number of languages.
+ {% else %} +{{ page.title }} supports an unknown number of languages.
+ {% endif %}+ diff --git a/apis/aisa.md b/apis/aisa.md index 6647bd5f3..7edff6320 100644 --- a/apis/aisa.md +++ b/apis/aisa.md @@ -135,7 +135,7 @@ supported_languages: variant_name: Traditional Chinese more_languages_by_request: false integrations: -- slug: phrase +- slug: phrase-tms name: Phrase TMS active: false active: true diff --git a/apis/alexa-translations-ai.md b/apis/alexa-translations-ai.md index 8ad46ca39..b19790aa0 100644 --- a/apis/alexa-translations-ai.md +++ b/apis/alexa-translations-ai.md @@ -90,7 +90,7 @@ integrations: name: MemoQ urls: - https://docs.memoq.com/current/en/Places/alexa-ai-plugin-settings.html -- slug: phrase +- slug: phrase-tms name: Phrase TMS - slug: trados name: Trados Studio diff --git a/apis/amazon.md b/apis/amazon.md index dec6f1f7a..113b91a34 100644 --- a/apis/amazon.md +++ b/apis/amazon.md @@ -479,7 +479,7 @@ integrations: glossary: true urls: - https://docs.memoq.com/current/en/Places/amazon-mt-plugin-settings.html -- slug: phrase +- slug: phrase-tms name: Phrase TMS glossary: true - slug: smartcat diff --git a/apis/apertium.md b/apis/apertium.md index 3bb6a7c54..a08e15b84 100644 --- a/apis/apertium.md +++ b/apis/apertium.md @@ -293,7 +293,7 @@ more_languages_by_request: true integrations: - slug: matecat name: MateCat -- slug: phrase +- slug: phrase-tms name: Phrase TMS - slug: omegat name: OmegaT diff --git a/apis/deepl.md b/apis/deepl.md index 65953c6fe..32b91987b 100644 --- a/apis/deepl.md +++ b/apis/deepl.md @@ -240,7 +240,7 @@ integrations: - slug: multitrans name: Multitrans url: https://docs.rws.com/785465/786901/sdl-multitrans/configuring-deepl -- slug: phrase +- slug: phrase-tms name: Phrase TMS glossary: true - slug: omegat diff --git a/apis/fairtrade.md b/apis/fairtrade.md index ca3d4fca5..4d63a42b3 100644 --- a/apis/fairtrade.md +++ b/apis/fairtrade.md @@ -14,7 +14,7 @@ customisation: [] supported_languages: [] more_languages_by_request: false integrations: -- slug: phrase +- slug: phrase-tms name: Phrase TMS active: false seo: diff --git a/apis/globalese.md b/apis/globalese.md index 2a8e20f63..d0a16511d 100644 --- a/apis/globalese.md +++ b/apis/globalese.md @@ -229,7 +229,7 @@ integrations: plugin: true urls: - https://globalese.atlassian.net/wiki/spaces/DOCS/pages/647069984/memoQ+connector -- slug: phrase +- slug: phrase-tms name: Phrase TMS urls: - https://globalese.atlassian.net/wiki/spaces/DOCS/pages/647135756/Phrase+connector diff --git a/apis/google.md b/apis/google.md index b0d13758b..297b48ecd 100644 --- a/apis/google.md +++ b/apis/google.md @@ -846,7 +846,7 @@ integrations: - slug: multitrans name: Multitrans url: https://docs.rws.com/785465/786605/sdl-multitrans/configuring-google-translate-server -- slug: phrase +- slug: phrase-tms name: Phrase TMS custom: true glossary: true diff --git a/apis/kantanmt.md b/apis/kantanmt.md index 05f46f9a5..8ec3233db 100644 --- a/apis/kantanmt.md +++ b/apis/kantanmt.md @@ -350,7 +350,7 @@ integrations: custom: true urls: - https://docs.memoq.com/current/en/Places/kantanmt-plugin-settings.html -- slug: phrase +- slug: phrase-tms name: Phrase TMS custom: true - slug: trados diff --git a/apis/kodensha.md b/apis/kodensha.md index cb70ea23b..d2a592244 100644 --- a/apis/kodensha.md +++ b/apis/kodensha.md @@ -266,7 +266,7 @@ supported_languages: variant_name: Traditional Chinese more_languages_by_request: true integrations: -- slug: phrase +- slug: phrase-tms name: Phrase TMS active: false active: true diff --git a/apis/language-weaver.md b/apis/language-weaver.md index 4e0eeecfd..5c2cb9e4b 100644 --- a/apis/language-weaver.md +++ b/apis/language-weaver.md @@ -396,7 +396,7 @@ integrations: - slug: multitrans name: Multitrans url: https://docs.rws.com/785465/786890/sdl-multitrans/configuring-sdl-mt-cloud -- slug: phrase +- slug: phrase-tms name: Phrase TMS custom: true offline_glossary: true diff --git a/apis/lengoo.md b/apis/lengoo.md index 5062ed017..df15f844b 100644 --- a/apis/lengoo.md +++ b/apis/lengoo.md @@ -14,7 +14,7 @@ customisation: [] supported_languages: [] more_languages_by_request: null integrations: -- slug: phrase +- slug: phrase-tms name: Phrase TMS - slug: trados name: Trados Studio diff --git a/apis/microsoft.md b/apis/microsoft.md index f085acb3d..be027fff3 100644 --- a/apis/microsoft.md +++ b/apis/microsoft.md @@ -703,7 +703,7 @@ integrations: - slug: multitrans name: Multitrans url: https://docs.rws.com/785465/786613/sdl-multitrans/configuring-microsoft-translator -- slug: phrase +- slug: phrase-tms name: Phrase TMS custom: true glossary: true diff --git a/apis/mirai.md b/apis/mirai.md index 37138a241..3c4521c80 100644 --- a/apis/mirai.md +++ b/apis/mirai.md @@ -105,7 +105,7 @@ integrations: name: MemoQ urls: - https://docs.memoq.com/current/en/Places/mirai-mt-plugin.html -- slug: phrase +- slug: phrase-tms name: Phrase TMS - slug: trados name: Trados Studio diff --git a/apis/moraviamt.md b/apis/moraviamt.md index 850e0168c..92747d9a1 100644 --- a/apis/moraviamt.md +++ b/apis/moraviamt.md @@ -13,7 +13,7 @@ customisation: [] supported_languages: [] more_languages_by_request: false integrations: -- slug: phrase +- slug: phrase-tms name: Phrase TMS active: false active: true diff --git a/apis/npatmt.md b/apis/npatmt.md index 5d9d9593d..5d0c9e7ed 100644 --- a/apis/npatmt.md +++ b/apis/npatmt.md @@ -15,7 +15,7 @@ customisation: supported_languages: [] more_languages_by_request: false integrations: -- slug: phrase +- slug: phrase-tms name: Phrase TMS urls: - https://www.npat.co.jp/EXPRESS_price_list/EXPRESS_price_list.html diff --git a/apis/omniscien.md b/apis/omniscien.md index 3b83da1f1..0dd7ab0fe 100644 --- a/apis/omniscien.md +++ b/apis/omniscien.md @@ -391,7 +391,7 @@ integrations: name: MemoQ urls: - https://www.memoq.com/integrations/machine-translation/public-plugin/omniscien -- slug: phrase +- slug: phrase-tms name: Phrase TMS custom: true - slug: xtm diff --git a/apis/pangeamt.md b/apis/pangeamt.md index 1c43d131a..03a559d1a 100644 --- a/apis/pangeamt.md +++ b/apis/pangeamt.md @@ -76,7 +76,7 @@ integrations: glossary: true urls: - https://docs.memoq.com/current/en/Places/pangeamt-plugin-settings.html -- slug: phrase +- slug: phrase-tms name: Phrase TMS custom: true - slug: trados diff --git a/apis/phrase-nextmt.md b/apis/phrase-nextmt.md index d39bae422..4758b203a 100644 --- a/apis/phrase-nextmt.md +++ b/apis/phrase-nextmt.md @@ -70,7 +70,7 @@ supported_languages: variant_name: Simplified Chinese more_languages_by_request: false integrations: -- slug: phrase +- slug: phrase-tms name: Phrase TMS glossary: true active: true diff --git a/apis/promt.md b/apis/promt.md index b9275aaa0..e62543fb9 100644 --- a/apis/promt.md +++ b/apis/promt.md @@ -266,7 +266,7 @@ integrations: - slug: multitrans name: Multitrans url: https://docs.rws.com/785465/786621/sdl-multitrans/configuring-promt -- slug: phrase +- slug: phrase-tms name: Phrase TMS custom: true glossary: true diff --git a/apis/rozetta.md b/apis/rozetta.md index f98bbf709..2a531af14 100644 --- a/apis/rozetta.md +++ b/apis/rozetta.md @@ -165,7 +165,7 @@ supported_languages: variant_name: Traditional Chinese more_languages_by_request: false integrations: -- slug: phrase +- slug: phrase-tms name: Phrase TMS custom: true glossary: true diff --git a/apis/skrivanek.md b/apis/skrivanek.md index fbf0c5fc2..90a4e0d2c 100644 --- a/apis/skrivanek.md +++ b/apis/skrivanek.md @@ -14,7 +14,7 @@ customisation: [] supported_languages: [] more_languages_by_request: false integrations: -- slug: phrase +- slug: phrase-tms name: Phrase TMS active: false active: true diff --git a/apis/systran.md b/apis/systran.md index 82ab7da9b..db92d8734 100644 --- a/apis/systran.md +++ b/apis/systran.md @@ -359,7 +359,7 @@ integrations: - slug: multitrans name: Multitrans url: https://docs.rws.com/785465/786625/sdl-multitrans/configuring-systran -- slug: phrase +- slug: phrase-tms name: Phrase TMS custom: true - slug: smartling diff --git a/apis/t-tact-an-zin.md b/apis/t-tact-an-zin.md index ee8a6895e..ff56049d8 100644 --- a/apis/t-tact-an-zin.md +++ b/apis/t-tact-an-zin.md @@ -104,7 +104,7 @@ supported_languages: variant_name: Traditional Chinese more_languages_by_request: false integrations: -- slug: phrase +- slug: phrase-tms name: Phrase TMS active: true seo: diff --git a/apis/tauyou.md b/apis/tauyou.md index 008217368..2831d9425 100644 --- a/apis/tauyou.md +++ b/apis/tauyou.md @@ -17,7 +17,7 @@ integrations: name: GlobalLink - slug: matecat name: MateCat -- slug: phrase +- slug: phrase-tms name: Phrase TMS active: false - slug: wordbee diff --git a/apis/tencent.md b/apis/tencent.md index ed1ef3a9c..d21dfb38e 100644 --- a/apis/tencent.md +++ b/apis/tencent.md @@ -134,7 +134,7 @@ integrations: plugin: true urls: - https://store.crowdin.com/tencent -- slug: phrase +- slug: phrase-tms name: Phrase TMS - slug: omegat name: OmegaT diff --git a/apis/tilde.md b/apis/tilde.md index b54b0449a..7ccf17621 100644 --- a/apis/tilde.md +++ b/apis/tilde.md @@ -159,7 +159,7 @@ integrations: glossary: true urls: - https://docs.memoq.com/current/en/Places/tilde-mt-plugin-settings.html -- slug: phrase +- slug: phrase-tms name: Phrase TMS custom: true - slug: trados diff --git a/apis/ubiqus.md b/apis/ubiqus.md index a86e90a87..f6696a897 100644 --- a/apis/ubiqus.md +++ b/apis/ubiqus.md @@ -16,7 +16,7 @@ customisation: supported_languages: [] more_languages_by_request: false integrations: -- slug: phrase +- slug: phrase-tms name: Phrase TMS glossary: true - slug: trados diff --git a/apis/yandex.md b/apis/yandex.md index de42ac87f..183c9a896 100644 --- a/apis/yandex.md +++ b/apis/yandex.md @@ -578,7 +578,7 @@ integrations: active: false - slug: matecat name: MateCat -- slug: phrase +- slug: phrase-tms name: Phrase TMS - slug: omegat name: OmegaT diff --git a/generate.py b/generate.py index fc8db0a45..9c6f5828c 100644 --- a/generate.py +++ b/generate.py @@ -399,7 +399,8 @@ def normalize(code): print(f'[{ text }]({ link })') # Generate TMS files - +QE_APIS_BY_ID = {api['id']: api for api in QUALITY_ESTIMATION} +APIS_BY_ID = {api['id']: api for api in APIS + AGGREGATORS} for tms in INTEGRATIONS: tms_id = tms['id'] print(tms_id) @@ -408,14 +409,32 @@ def normalize(code): tms_type = tms['type'] fuzzy_repair = tms.get('fuzzy_repair', False) tms_open_source = tms.get('open_source', False) - tms_quality_estimation_api_integrations = tms.get('quality_estimation_api_integrations', []) - APIS_BY_ID = {api['id']: api for api in APIS + AGGREGATORS} - + tms_qe_api_integrations = tms.get('quality_estimation_integrations', []) + + qe_api_integrations = [] + for qe_integration in tms_qe_api_integrations: + try: + qe_integration_data = {} + if isinstance(qe_integration, dict): + qe_integration_slug = list(qe_integration.keys())[0] + qe_integration_data['slug'] = qe_integration_slug + for k, v in qe_integration[qe_integration_slug].items(): + qe_integration_data[k] = v + else: + qe_integration_slug = qe_integration + qe_integration_data['slug'] = qe_integration_slug + + qe_integration_data['name'] = QE_APIS_BY_ID[qe_integration_slug]['name'] + + qe_api_integrations.append(qe_integration_data) + except KeyError: + pass + api_integrations = [] for integration in tms['api_integrations']: try: integration_data = {} - if type(integration) == type({}): + if isinstance(integration, dict): integration_slug = list(integration.keys())[0] integration_data['slug'] = integration_slug for k, v in integration[integration_slug].items(): @@ -442,7 +461,7 @@ def normalize(code): frontmatter = { 'autogenerated': True, 'layout': 'integration', - 'nav_order': 1000 - (len(api_integrations) + len(tms_quality_estimation_api_integrations)), + 'nav_order': 1000 - (len(api_integrations) + len(tms_qe_api_integrations)), 'title': tms_name, 'description': desc, 'id': tms_id, @@ -453,7 +472,7 @@ def normalize(code): 'api_integrations': api_integrations, 'fuzzy_repair': fuzzy_repair, 'open-source': tms_open_source, - 'quality_estimation_api_integrations': tms_quality_estimation_api_integrations, + 'quality_estimation_integrations': qe_api_integrations, 'seo': { 'name': desc, 'type': 'Product' @@ -479,7 +498,6 @@ def normalize(code): a_name = a['name'] a_urls = a['urls'] a_self_serve = a.get('self-serve', False) - APIS_BY_ID = {api['id']: api for api in APIS} a_supported_apis = [] for a in a['supported_apis']: @@ -558,21 +576,27 @@ def normalize(code): only_compatible_mt_api = [] only_compatible_mt_api_id = estimation.get('only_compatible_mt_api', False) - api_name = next((api['name'] for api in APIS if only_compatible_mt_api_id and \ - api['id'].lower() == only_compatible_mt_api_id.lower()), only_compatible_mt_api_id) - only_compatible_mt_api.append({ - 'id': only_compatible_mt_api_id, - 'name': api_name - }) + if only_compatible_mt_api_id: + api_name = next((api['name'] for api in APIS if only_compatible_mt_api_id and \ + api['id'].lower() == only_compatible_mt_api_id.lower()), only_compatible_mt_api_id) + only_compatible_mt_api.append({ + 'id': only_compatible_mt_api_id, + 'name': api_name + }) + else: + only_compatible_mt_api = only_compatible_mt_api_id only_compatible_tms = [] only_compatible_tms_id = estimation.get('only_compatible_tms', False) - tms_name = next((tms['name'] for tms in INTEGRATIONS if only_compatible_tms_id and \ - tms['id'].lower() == only_compatible_tms_id.lower()), only_compatible_tms_id) - only_compatible_tms.append({ - 'id': only_compatible_tms_id, - 'name': tms_name - }) + if only_compatible_tms_id: + tms_name = next((tms['name'] for tms in INTEGRATIONS if only_compatible_tms_id and \ + tms['id'].lower() == only_compatible_tms_id.lower()), only_compatible_tms_id) + only_compatible_tms.append({ + 'id': only_compatible_tms_id, + 'name': tms_name + }) + else: + only_compatible_tms = only_compatible_tms_id customisation = estimation.get('customisation', False) @@ -599,6 +623,23 @@ def normalize(code): 'variant_name': variant_name }) + integrations = [] + for tms in INTEGRATIONS: + for i in tms.get("quality_estimation_integrations", []): + if i == company_id: + integrations.append({ + 'slug': tms['id'], + 'name': tms['name'] + }) + elif isinstance(i, dict): + id = next(iter(i)) + if id == company_id: + integrations.append({ + 'slug': tms['id'], + 'name': tms['name'], + **i[company_id] + }) + desc = f'The {name} translation quality estimation API' frontmatter = { @@ -616,6 +657,7 @@ def normalize(code): 'only_compatible_mt_api': only_compatible_mt_api, 'only_compatible_tms': only_compatible_tms, 'customisation': customisation, + 'integrations': integrations, 'seo': { 'name': desc, 'type': 'Product' diff --git a/integrations/across.md b/integrations/across.md index 213e244c5..0c54aaa63 100644 --- a/integrations/across.md +++ b/integrations/across.md @@ -31,7 +31,7 @@ api_integrations: name: TextShuttle fuzzy_repair: true open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in Across type: Product diff --git a/integrations/crowdin.md b/integrations/crowdin.md index 5bc06f600..8998b8c69 100644 --- a/integrations/crowdin.md +++ b/integrations/crowdin.md @@ -1,7 +1,7 @@ --- autogenerated: true layout: integration -nav_order: 985 +nav_order: 984 title: Crowdin description: Machine translation API integrations in Crowdin id: crowdin @@ -92,7 +92,10 @@ api_integrations: name: Yandex Translate fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: +- slug: modelfront + custom: true + name: ModelFront seo: name: Machine translation API integrations in Crowdin type: Product diff --git a/integrations/eluna.md b/integrations/eluna.md index 80b625ef4..276b3c691 100644 --- a/integrations/eluna.md +++ b/integrations/eluna.md @@ -20,7 +20,7 @@ api_integrations: name: TAPTA fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in eLUNa type: Product diff --git a/integrations/globallink.md b/integrations/globallink.md index 3b55d7e90..4ca2e38ed 100644 --- a/integrations/globallink.md +++ b/integrations/globallink.md @@ -34,7 +34,7 @@ api_integrations: name: TransPerfect NMT fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in GlobalLink type: Product diff --git a/integrations/groupshare.md b/integrations/groupshare.md index 58fafc2fa..43ce6b1f7 100644 --- a/integrations/groupshare.md +++ b/integrations/groupshare.md @@ -15,7 +15,7 @@ api_integrations: name: Language Weaver fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in GroupShare type: Product diff --git a/integrations/lilt-tms.md b/integrations/lilt-tms.md index b147d3107..4cbf5dbc7 100644 --- a/integrations/lilt-tms.md +++ b/integrations/lilt-tms.md @@ -20,7 +20,7 @@ api_integrations: name: Lilt fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in Lilt type: Product diff --git a/integrations/matecat.md b/integrations/matecat.md index 2fb9026ec..ffa622236 100644 --- a/integrations/matecat.md +++ b/integrations/matecat.md @@ -51,7 +51,7 @@ api_integrations: name: Yandex Translate fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in MateCat type: Product diff --git a/integrations/memoq.md b/integrations/memoq.md index 357200920..e18c7e373 100644 --- a/integrations/memoq.md +++ b/integrations/memoq.md @@ -135,7 +135,7 @@ api_integrations: name: XL8 fuzzy_repair: true open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in MemoQ type: Product diff --git a/integrations/multitrans.md b/integrations/multitrans.md index 8e07017a6..63eeef06e 100644 --- a/integrations/multitrans.md +++ b/integrations/multitrans.md @@ -39,7 +39,7 @@ api_integrations: name: TAPTA fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in Multitrans type: Product diff --git a/integrations/omegat.md b/integrations/omegat.md index 900ce060d..cb074bdcd 100644 --- a/integrations/omegat.md +++ b/integrations/omegat.md @@ -38,7 +38,7 @@ api_integrations: name: Yandex Translate fuzzy_repair: true open-source: true -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in OmegaT type: Product diff --git a/integrations/passolo.md b/integrations/passolo.md index 9708f7af8..2b8ee6d66 100644 --- a/integrations/passolo.md +++ b/integrations/passolo.md @@ -27,7 +27,7 @@ api_integrations: name: Microsoft Translator fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in Passolo type: Product diff --git a/integrations/phrase-tms.md b/integrations/phrase-tms.md index 4d84573d8..7061c40d7 100644 --- a/integrations/phrase-tms.md +++ b/integrations/phrase-tms.md @@ -1,7 +1,7 @@ --- autogenerated: true layout: integration -nav_order: 969 +nav_order: 968 title: Phrase TMS description: Machine translation API integrations in Phrase TMS id: phrase-tms @@ -104,7 +104,10 @@ api_integrations: name: Yandex Translate fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: +- slug: phrase-mtqe + custom: false + name: Phrase MTQE seo: name: Machine translation API integrations in Phrase TMS type: Product diff --git a/integrations/sdl-tms.md b/integrations/sdl-tms.md index eb2524c11..863c63a18 100644 --- a/integrations/sdl-tms.md +++ b/integrations/sdl-tms.md @@ -15,7 +15,7 @@ api_integrations: name: Language Weaver fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in SDL TMS type: Product diff --git a/integrations/smartcat.md b/integrations/smartcat.md index e39baffad..ac15033ad 100644 --- a/integrations/smartcat.md +++ b/integrations/smartcat.md @@ -52,7 +52,7 @@ api_integrations: name: Yandex Translate fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in Smartcat type: Product diff --git a/integrations/smartling.md b/integrations/smartling.md index f6fe636e6..685dd240d 100644 --- a/integrations/smartling.md +++ b/integrations/smartling.md @@ -40,7 +40,7 @@ api_integrations: name: Watson Language Translator fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in Smartling type: Product diff --git a/integrations/tolgee.md b/integrations/tolgee.md index c2a8eee9c..4883dbacf 100644 --- a/integrations/tolgee.md +++ b/integrations/tolgee.md @@ -25,7 +25,7 @@ api_integrations: name: Microsoft Translator fuzzy_repair: false open-source: true -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in Tolgee type: Product diff --git a/integrations/trados.md b/integrations/trados.md index 74fba3e67..f33dfdd48 100644 --- a/integrations/trados.md +++ b/integrations/trados.md @@ -184,7 +184,7 @@ api_integrations: name: Youdao Translate fuzzy_repair: true open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in Trados Studio type: Product diff --git a/integrations/transifex.md b/integrations/transifex.md index c1c9ee725..35d13e85b 100644 --- a/integrations/transifex.md +++ b/integrations/transifex.md @@ -32,7 +32,7 @@ api_integrations: name: Microsoft Translator fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in Transifex type: Product diff --git a/integrations/transitnxt.md b/integrations/transitnxt.md index 2d6515850..1411b1f52 100644 --- a/integrations/transitnxt.md +++ b/integrations/transitnxt.md @@ -32,7 +32,7 @@ api_integrations: name: TextShuttle fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in TransitNXT type: Product diff --git a/integrations/translate5.md b/integrations/translate5.md index a95e73e96..26e134d25 100644 --- a/integrations/translate5.md +++ b/integrations/translate5.md @@ -1,7 +1,7 @@ --- autogenerated: true layout: integration -nav_order: 992 +nav_order: 991 title: translate5 description: Machine translation API integrations in translate5 id: translate5 @@ -45,7 +45,10 @@ api_integrations: name: PangeaMT fuzzy_repair: false open-source: true -quality_estimation_api_integrations: [] +quality_estimation_integrations: +- slug: modelfront + custom: true + name: ModelFront seo: name: Machine translation API integrations in translate5 type: Product diff --git a/integrations/weglot.md b/integrations/weglot.md index cbdfcc5e3..013c02d0b 100644 --- a/integrations/weglot.md +++ b/integrations/weglot.md @@ -20,7 +20,7 @@ api_integrations: name: Microsoft Translator fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in Weglot type: Product diff --git a/integrations/wordbee.md b/integrations/wordbee.md index 2bf70439d..3e2222419 100644 --- a/integrations/wordbee.md +++ b/integrations/wordbee.md @@ -68,7 +68,7 @@ api_integrations: name: Tilde fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in Wordbee type: Product diff --git a/integrations/wordfast.md b/integrations/wordfast.md index ee177438a..9df5869b2 100644 --- a/integrations/wordfast.md +++ b/integrations/wordfast.md @@ -56,7 +56,7 @@ api_integrations: name: Yandex Translate fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in Wordfast type: Product diff --git a/integrations/worldserver.md b/integrations/worldserver.md index 240408fd3..c5de3444f 100644 --- a/integrations/worldserver.md +++ b/integrations/worldserver.md @@ -19,7 +19,7 @@ api_integrations: name: SYSTRAN fuzzy_repair: false open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in WorldServer type: Product diff --git a/integrations/xtm.md b/integrations/xtm.md index 45e4f2992..71cdb76fa 100644 --- a/integrations/xtm.md +++ b/integrations/xtm.md @@ -114,7 +114,7 @@ api_integrations: name: TexTra fuzzy_repair: true open-source: false -quality_estimation_api_integrations: [] +quality_estimation_integrations: [] seo: name: Machine translation API integrations in XTM type: Product diff --git a/quality-estimation/demt-estimate-api.md b/quality-estimation/demt-estimate-api.md index aeb05b9ba..b53de233a 100644 --- a/quality-estimation/demt-estimate-api.md +++ b/quality-estimation/demt-estimate-api.md @@ -557,13 +557,10 @@ supported_languages: base_code: zu name: Zulu variant_name: null -only_compatible_mt_api: -- id: null - name: null -only_compatible_tms: -- id: null - name: null +only_compatible_mt_api: null +only_compatible_tms: null customisation: false +integrations: [] seo: name: The DeMT Estimate API translation quality estimation API type: Product diff --git a/quality-estimation/google-translation-hub-mtqp.md b/quality-estimation/google-translation-hub-mtqp.md index 96ebacedb..6100eb5c7 100644 --- a/quality-estimation/google-translation-hub-mtqp.md +++ b/quality-estimation/google-translation-hub-mtqp.md @@ -2,8 +2,9 @@ autogenerated: true nav_order: 989 layout: quality_estimation -title: Google Translation Hub - MTQP -description: Machine translation quality prediction scores +title: Google Translation Hub MTQP +description: The Google Translation Hub MTQP translation quality estimation API +tagline: Machine translation quality prediction scores id: translationhub company: Google parent: Quality estimation @@ -66,11 +67,16 @@ supported_languages: base_code: zh name: Chinese variant_name: null -only_compatible_mt_api: google -only_compatible_tms: translationhub +only_compatible_mt_api: +- id: google + name: Google Translate +only_compatible_tms: +- id: translationhub + name: translationhub customisation: false +integrations: [] seo: - name: Machine translation quality prediction scores + name: The Google Translation Hub MTQP translation quality estimation API type: Product --- diff --git a/quality-estimation/kantanqes.md b/quality-estimation/kantanqes.md index f0447f096..f37dd7d43 100644 --- a/quality-estimation/kantanqes.md +++ b/quality-estimation/kantanqes.md @@ -3,9 +3,10 @@ autogenerated: true nav_order: 962 layout: quality_estimation title: KantanQES -description: Quality estimation score +description: The KantanQES translation quality estimation API +tagline: Quality estimation score id: kantanqes -company: Kantan Ai +company: Kantan AI parent: Quality estimation urls: - https://www.kantanai.io/kantanqes-home/ @@ -201,11 +202,16 @@ supported_languages: base_code: zh name: Chinese variant_name: Traditional Chinese -only_compatible_mt_api: kantanmt -only_compatible_tms: kantanstream +only_compatible_mt_api: +- id: kantanmt + name: KantanMT +only_compatible_tms: +- id: kantanstream + name: kantanstream customisation: true +integrations: [] seo: - name: Quality estimation score + name: The KantanQES translation quality estimation API type: Product --- diff --git a/quality-estimation/modelfront.md b/quality-estimation/modelfront.md index ce182097b..de17d9dd3 100644 --- a/quality-estimation/modelfront.md +++ b/quality-estimation/modelfront.md @@ -3,9 +3,10 @@ autogenerated: true nav_order: 853 layout: quality_estimation title: ModelFront -description: Translation quality prediction +description: The ModelFront translation quality estimation API +tagline: Translation quality prediction id: modelfront -company: Modelfront +company: ModelFront parent: Quality estimation urls: - https://modelfront.com @@ -749,8 +750,15 @@ supported_languages: only_compatible_mt_api: null only_compatible_tms: null customisation: true +integrations: +- slug: crowdin + name: Crowdin + custom: true +- slug: translate5 + name: translate5 + custom: true seo: - name: Translation quality prediction + name: The ModelFront translation quality estimation API type: Product --- diff --git a/quality-estimation/omniscien-confidence-scores.md b/quality-estimation/omniscien-confidence-scores.md index 9560ee240..fb0b1ddf7 100644 --- a/quality-estimation/omniscien-confidence-scores.md +++ b/quality-estimation/omniscien-confidence-scores.md @@ -2,8 +2,9 @@ autogenerated: true nav_order: 955 layout: quality_estimation -title: Omniscien - Confidence Scores -description: Translation confidence scoring and quality estimates +title: Omniscien Confidence Scores +description: The Omniscien Confidence Scores translation quality estimation API +tagline: Translation confidence scoring and quality estimates id: omniscien-qe company: Omniscien Technologies parent: Quality estimation @@ -237,11 +238,14 @@ supported_languages: base_code: zh name: Chinese variant_name: null -only_compatible_mt_api: kantanmt +only_compatible_mt_api: +- id: kantanmt + name: KantanMT only_compatible_tms: null customisation: true +integrations: [] seo: - name: Translation confidence scoring and quality estimates + name: The Omniscien Confidence Scores translation quality estimation API type: Product --- diff --git a/quality-estimation/phrase-mtqe.md b/quality-estimation/phrase-mtqe.md index 5d7c31714..2670ed314 100644 --- a/quality-estimation/phrase-mtqe.md +++ b/quality-estimation/phrase-mtqe.md @@ -2,8 +2,9 @@ autogenerated: true nav_order: 933 layout: quality_estimation -title: Phrase - MTQE -description: Machine translation quality estimation +title: Phrase MTQE +description: The Phrase MTQE translation quality estimation API +tagline: Machine translation quality estimation id: phrase-mtqe company: Phrase parent: Quality estimation @@ -347,10 +348,16 @@ supported_languages: name: Chinese variant_name: Traditional Chinese only_compatible_mt_api: null -only_compatible_tms: phrasetms +only_compatible_tms: +- id: phrase-tms + name: Phrase TMS customisation: false +integrations: +- slug: phrase-tms + name: Phrase TMS + custom: false seo: - name: Machine translation quality estimation + name: The Phrase MTQE translation quality estimation API type: Product ---Integrations
++++ {% if page.integrations.size == 1 %} + 1 translation management system has integrated the {{ page.title }} quality estimation API. + {% else %} + {{ page.integrations | size }} translation management systems have integrated the {{ page.title }} quality estimation API. + {% endif %} +
++ {{ page.integrations | slice: 0, 5 | map: 'name' | join: ', ' }} + {% if page.integrations.size > 5 %}, …{% endif %} +
++ {% for i in page.integrations %} +
+- + {{ i.name }} +
+ {% endfor %} +