<commit_before># Google Translate Api filter plugin for Embulk

Google Translate Api filter plugin for Embulk.

see support language. [Google Language Codes \- tomihasa](https://sites.google.com/site/tomihasa/google-language-codes)

## Overview

* **Plugin type**: filter

## Configuration

- **key_names**: target key names (array, required)
- **out_key_name_suffix**: translated target key names suffix (string, required)
- **source_lang**: source language (string, default: `null`)
- **target_lang**: target language (string, required)
- **sleep**: delay per record, define milliseconds. (integer, default: 0)
- **google_api_key**: google_api_key. support environment variable. please `export GOOGLE_API_KEY`(string, default: `null`)

## Example

#### input
```yaml
- {
    sentence1: 'Embulk supports plugins to add functions',
    sentence2: 'Embulk is a parallel bulk data loader that helps data transfer between various storages, databases, NoSQL and cloud services.',
    sentence3: 'You can share the plugins to keep your custom scripts readable, maintainable, and reusable.',
    json_column: ['aaa', 'bbbb', 'cccc']
  }<commit_msg>fix README for model option.<commit_after># Google Translate Api filter plugin for Embulk

Google Translate Api filter plugin for Embulk.

see support language. [Google Language Codes \- tomihasa](https://sites.google.com/site/tomihasa/google-language-codes)

## Overview

* **Plugin type**: filter

## Configuration

- **key_names**: target key names (array, required)
- **out_key_name_suffix**: translated target key names suffix (string, required)
- **source_lang**: source language (string, default: `null`)
- **target_lang**: target language (string, required)
- **model**: if premium edition can use. nmt(neural machine translation) or base. (string, default: `null`)
- **sleep**: delay per record, define milliseconds. (integer, default: 0)
- **google_api_key**: google_api_key. support environment variable. please `export GOOGLE_API_KEY`(string, default: `null`)

## Example

#### input
```yaml
- {
    sentence1: 'Embulk supports plugins to add functions',
    sentence2: 'Embulk is a parallel bulk data loader that helps data transfer between various storages, databases, NoSQL and cloud services.',
    sentence3: 'You can share the plugins to keep your custom scripts readable, maintainable, and reusable.',
    json_column: ['aaa', 'bbbb', 'cccc']
  }
{'fraction_non_alphanumeric': 0.12339011217282925, 'fraction_numerical': 0.0033236393851267137, 'mean_word_length': 5.111675126903553, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2507671', 'n_tokens_mistral': 690, 'n_tokens_neox': 654, 'n_words': 258}