Chapter 3c: Transformation

A transformation takes information in one format and rewrites it to another.

The traditional machine learning technique used for this is "sequence-to-sequence learning."

This can be used for translation, simplification, and data conversion.

Here is a transformer:

async function translateToCanadianFrench(englishInput) {
    const botResponse = await sendPost("https://acme-ai.com/v1/chat", {
        sender: "user",
        message: `
            ${englishInput}

            translate the above text to Canadian French.
        `
    })

    return botResponse.message;
}

This chapter is in development.