# tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptions

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1390-L1458) |

## Methods

### `GetRootAs`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1393-L1398)

```python
@classmethod
GetRootAs(
    buf, offset=0
)
```

### `GetRootAsSentencePieceTokenizerOptions`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1400-L1403)

```python
@classmethod
GetRootAsSentencePieceTokenizerOptions(
    buf, offset=0
)
```

This method is deprecated. Please switch to GetRootAs.

### `Init`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1409-L1410)

```python
Init(
    buf, pos
)
```

### `SentencePieceModel`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1413-L1422)

```python
SentencePieceModel(
    j
)
```

### `SentencePieceModelIsNone`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1432-L1434)

```python
SentencePieceModelIsNone()
```

### `SentencePieceModelLength`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1425-L1429)

```python
SentencePieceModelLength()
```

### `SentencePieceTokenizerOptionsBufferHasIdentifier`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1404-L1406)

```python
@classmethod
SentencePieceTokenizerOptionsBufferHasIdentifier(
    buf, offset, size_prefixed=False
)
```

### `VocabFile`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1437-L1446)

```python
VocabFile(
    j
)
```

### `VocabFileIsNone`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1456-L1458)

```python
VocabFileIsNone()
```

### `VocabFileLength`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1449-L1453)

```python
VocabFileLength()
```