Custom translator XLIFF training document upload error: Failed to extract the contents of the uploaded file.

Sindre 0 Reputation points
2024-11-21T11:33:27.61+00:00

When trying to upload training documents in format XLIFF (2.0 or 1.2) at portal.customtranslator.azure.ai the uploads always fail with "Failed to extract the contents of the uploaded file." I don't get any indication of failure on upload page, but can see this error in upload history.

Example of xliff file:

<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0" srcLang="en-US" trgLang="nb-NO">

<file id="f1" original="Simple_Example.html">

<skeleton href="Simple_Example.html.skl"/>

<unit id="1">

<segment>

<source>Hello world</source>

<target>Hei verden</target>

</segment>

</unit>

<unit id="2">

<segment>

<source>This is an XLIFF document.</source>

<target>Dette er ett XLIFF dokument.</target>

</segment>

</unit>

</file>

</xliff>

Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
420 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.