tensorflow/lite/g3doc/api_docs/python/tflite_support/metadata_schema_py_generated/SentencePieceTokenizerOptions.md
page_type: reference
<link rel="stylesheet" href="/site-assets/css/style.css"> <!-- DO NOT EDIT! Automatically generated file. --> <div itemscope itemtype="http://developers.google.com/ReferenceObject"> <meta itemprop="name" content="tflite_support.metadata_schema_py_generated.SentencePieceTokenizerOptions" /> <meta itemprop="path" content="Stable" /> <meta itemprop="property" content="GetRootAs"/> <meta itemprop="property" content="GetRootAsSentencePieceTokenizerOptions"/> <meta itemprop="property" content="Init"/> <meta itemprop="property" content="SentencePieceModel"/> <meta itemprop="property" content="SentencePieceModelIsNone"/> <meta itemprop="property" content="SentencePieceModelLength"/> <meta itemprop="property" content="SentencePieceTokenizerOptionsBufferHasIdentifier"/> <meta itemprop="property" content="VocabFile"/> <meta itemprop="property" content="VocabFileIsNone"/> <meta itemprop="property" content="VocabFileLength"/> </div>View source on GitHub
<a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1393-L1398">View source</a>
<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>@classmethod</code> <code>GetRootAs( buf, offset=0 ) </code></pre> <h3 id="GetRootAsSentencePieceTokenizerOptions"><code>GetRootAsSentencePieceTokenizerOptions</code></h3><a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1400-L1403">View source</a>
<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>@classmethod</code> <code>GetRootAsSentencePieceTokenizerOptions( buf, offset=0 ) </code></pre>This method is deprecated. Please switch to GetRootAs.
<h3 id="Init"><code>Init</code></h3><a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1409-L1410">View source</a>
<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>Init( buf, pos ) </code></pre> <h3 id="SentencePieceModel"><code>SentencePieceModel</code></h3><a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1413-L1422">View source</a>
<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>SentencePieceModel( j ) </code></pre> <h3 id="SentencePieceModelIsNone"><code>SentencePieceModelIsNone</code></h3><a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1432-L1434">View source</a>
<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>SentencePieceModelIsNone() </code></pre> <h3 id="SentencePieceModelLength"><code>SentencePieceModelLength</code></h3><a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1425-L1429">View source</a>
<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>SentencePieceModelLength() </code></pre> <h3 id="SentencePieceTokenizerOptionsBufferHasIdentifier"><code>SentencePieceTokenizerOptionsBufferHasIdentifier</code></h3><a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1404-L1406">View source</a>
<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>@classmethod</code> <code>SentencePieceTokenizerOptionsBufferHasIdentifier( buf, offset, size_prefixed=False ) </code></pre> <h3 id="VocabFile"><code>VocabFile</code></h3><a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1437-L1446">View source</a>
<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>VocabFile( j ) </code></pre> <h3 id="VocabFileIsNone"><code>VocabFileIsNone</code></h3><a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1456-L1458">View source</a>
<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>VocabFileIsNone() </code></pre> <h3 id="VocabFileLength"><code>VocabFileLength</code></h3><a target="_blank" class="external" href="https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1449-L1453">View source</a>
<pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>VocabFileLength() </code></pre>