# Feature Request: Machine Translation View

**URL:** https://support.prodi.gy/t/feature-request-machine-translation-view/234
**Category:** Uncategorized
**Tags:** enhancement, solved, front-end, done
**Created:** [January 18, 2018, 10:48pm UTC](https://support.prodi.gy/t/feature-request-machine-translation-view/234 "2018-01-18T22:48:00Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)
#### Post date: [January 19, 2018, 12:21am UTC](https://support.prodi.gy/t/feature-request-machine-translation-view/234/3 "2018-01-19T00:21:33Z")

</div>

Thanks – I like that idea! We could even generalise this a bit more and make it a general “text input” interface that lets you render any task (text, image, NER) and adds an input box to the card that you can optionally pre-populate with text. This means you could use it for machine translation, but also for image captioning etc.

```json
{
    "text": "It was a pressure to meet you.",
    "text_input_default": "It was pleasure."
}

```

The default content will then be displayed in the text field, and can be edited by the user. It will then be added to the task as `"text_input"` (not sure about the exact naming of the keys yet).

You could also very easily convert the annotations to a stream of `compare` or `diff` examples. This would let you re-annotate the corrections made by the user:

```python
diff_examples = []

for eg in user_input_examples:
    before = eg['text_input_default']
    after = eg['text_input']
    if before != after: # user has edited the text
        task = {'input': {'text': eg['text']}, 
                'accept': {'text': after}, 
                'reject': {'text': before}}
        # optional: shuffle accept / reject for less biased evaluation
        diff_examples.append(task)

```

---

_[View the full topic](https://support.prodi.gy/t/feature-request-machine-translation-view/234)._
