<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google-ai-edge/mediapipe/blob/master/mediapipe/tasks/python/text/text_proofreader.py#L37-L74) |

Options for the text proofreader task.

```python
mp.tasks.text.TextProofreaderOptions(
    base_options: `mp.tasks.BaseOptions`,
    max_num_tokens: Optional[int] = None,
    cache_dir: Optional[str] = None,
    min_log_severity: Optional[int] = 4
)
```

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `base_options` | Base options for the text proofreader task. |
| `max_num_tokens` | The maximum number of tokens for proofreader tasks. If set, the proofread output text will be truncated if the input and output exceed this value. If not set, then the default max_num_tokens is roughly 8k tokens due to the model's capacity. |
| `cache_dir` | Cache directory for the model weight cache and program cache. To disable caching, set this to ":nocache". |
| `min_log_severity` | Minimum logging severity (default 4 = ERROR). |

<br />

## Methods

### `to_ctypes`

[View source](https://github.com/google-ai-edge/mediapipe/blob/master/mediapipe/tasks/python/text/text_proofreader.py#L57-L74)

```python
to_ctypes() -> _MpTextProofreaderOptionsC
```

Generates a ctypes TextProofreaderOptionsC.

### `__eq__`

```python
__eq__(
    other
)
```

Return self==value.

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| cache_dir | `None` |
| max_num_tokens | `None` |
| min_log_severity | `4` |

<br />