Published April 12, 2023 | Version v1
Dataset Open

Alpaca Cleaned Dutch

Description

This dataset contains 51,712 conversations between een AI assistant and a (fake) "Human" (generated) in Dutch. They are translations of Alpaca Cleaned Dataset.

Data Instances

{
    'id': 7,
    'instruction': 'Leg uit waarom de volgende breuk gelijk is aan 1/4',
    'input': '4/16',
    'output': 'De breuk 4/16 is gelijk aan 1/4 omdat zowel de teller als de '
              'noemer deelbaar zijn door 4. Door zowel de teller als de noemer '
              'door 4 te delen, krijgen we de breuk 1/4.'
}

 

Data Fields

  • id: the ID of the item. The following ID is not included because they could not be translated: [23019]
  • instruction: the given instruction input: optional input to accompany the instruction. Can be empty.
  • output: the "answer" to the instruction

Dataset Creation

The instructions, inputs and outputs were translated with OpenAI's API for gpt-3.5-turbomax_tokens=1024, temperature=0 as parameters.

The prompt template to translate is (where src_lang is English and tgt_lang is Dutch):

TRANSLATION_PROMPT = """You are asked to translate a task's instruction, optional input to the task, and the output of the task, from {src_lang} into {tgt_lang}.

Here are the requirements that you should adhere to:
1. maintain the format: the task consists of a task instruction (marked `instruction: `), optional input to the task (marked `input: `) and output for the task marked with `output: `;
2. do not translate the identifiers `instruction: `, `input: `, and `output: ` but instead copy them to your output;
3. make sure that text is fluent to read and does not contain grammatical errors. Use standard {tgt_lang} without regional bias;
4. translate the instruction and input text using informal, but standard, language;
5. make sure to avoid biases (such as gender bias, grammatical bias, social bias);
6. if the instruction is to correct grammar mistakes or spelling mistakes then you have to generate a similar mistake in the input in {tgt_lang}, and then also generate a corrected output version in the output in {tgt_lang};
7. if the instruction is to translate text from one language to another, then you do not translate the text that needs to be translated in the instruction or the input, nor the translation in the output (just copy them as-is);
8. do not translate code fragments but copy them to your output. If there are English examples, variable names or definitions in code fragments, keep them in English.

Now translate the following task with the requirements set out above. Do not provide an explanation and do not add anything else.\n\n"""

 

This prompt is concatenated with the instruction, optionally the input, and the output. In code, that last part looks like this:

text = f'instruction: "{instruction}"\n\n'
if inputstr:
    text += f'input: "{inputstr}"\n\n'
text += f'output: "{outputstr}"'

 

The system message was:

You are a helpful assistant that translates English to Dutch to the requirements that are given to you.

 

Note that 1 item (0.0001%) was not successfully translated. The translation was missing the input, instruction, or output keywords where those were expected. The ID for the missing item is [23019].

Initial data creation of the English dataset by Tatsu lab and cleaned by Yahma.

Also available on HuggingFace hub (with a more extensive README).

Licensing Information

As per OpenAI's terms of use, this dataset cannot be used to build a commercial system that competes with OpenAI's services. Similar to the original Alpaca dataset, this dataset is released under CC NC 4.0.

This text was generated (either in part or in full) with GPT-3 (gpt-3.5-turbo), OpenAI’s large-scale language-generation model. Upon generating draft language, the author reviewed, edited, and revised the language to their own liking and takes ultimate responsibility for the content of this publication.

If you use this dataset, you must also follow the Sharing and Usage policies.

As clearly stated in their Terms of Use, specifically 2c.iii, "[you may not] use output from the Services to develop models that compete with OpenAI". That means that you cannot use this dataset to build models that are intended to commercially compete with OpenAI. As far as I am aware, that is a specific restriction that should serve as an addendum to the current license.

Files

Files (24.4 MB)

Name Size Download all
md5:c096a7a8a7bee31047222b3f1ad89991
24.4 MB Download