.. _f-onnxtokenizerz: module ``sklapi.onnx_tokenizer`` ================================ .. inheritance-diagram:: mlprodict.sklapi.onnx_tokenizer Short summary +++++++++++++ module ``mlprodict.sklapi.onnx_tokenizer`` Wrapper tokenizrs implemented in :epkg:`onnxruntime-extensions`. :githublink:`%|py|6` Classes +++++++ +----------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+ | class | truncated documentation | +================================================================================================================+=====================================================================================================================================================+ | :class:`GPT2TokenizerTransformer ` | Wraps `GPT2Tokenizer `_ ... | +----------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`SentencePieceTokenizerTransformer ` | Wraps `SentencePieceTokenizer `_ ... | +----------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`TokenizerTransformerBase ` | Base class for :class:`SentencePieceTokenizerTransformer` and :class:`GPT2TokenizerTransformer`. | +----------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+ Properties ++++++++++ +--------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | property | truncated documentation | +========================================================================================================+==================================================================================================================+ | :py:meth:`_repr_html_ ` | HTML representation of estimator. This is redundant with the logic of `_repr_mimebundle_`. The latter should ... | +--------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_repr_html_ ` | HTML representation of estimator. This is redundant with the logic of `_repr_mimebundle_`. The latter should ... | +--------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_repr_html_ ` | HTML representation of estimator. This is redundant with the logic of `_repr_mimebundle_`. The latter should ... | +--------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ Static Methods ++++++++++++++ +------------------------------------------------------------------------------------------------------------+-------------------------+ | staticmethod | truncated documentation | +============================================================================================================+=========================+ | :py:meth:`_create_model ` | | +------------------------------------------------------------------------------------------------------------+-------------------------+ | :py:meth:`_create_model ` | | +------------------------------------------------------------------------------------------------------------+-------------------------+ Methods +++++++ +----------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | method | truncated documentation | +==========================================================================================================+====================================================================================================+ | :py:meth:`__getstate__ ` | | +----------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__getstate__ ` | | +----------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__getstate__ ` | | +----------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__setstate__ ` | | +----------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__setstate__ ` | | +----------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :py:meth:`__setstate__ ` | | +----------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :meth:`fit ` | The model is not trains this method is still needed to set the instance up and ready to transform. | +----------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :meth:`fit ` | The model is not trains this method is still needed to set the instance up and ready to transform. | +----------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :meth:`transform ` | Applies the tokenizers on an array of strings. | +----------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ | :meth:`transform ` | Applies the tokenizers on an array of strings. | +----------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlprodict.sklapi.onnx_tokenizer :members: :special-members: __init__ :show-inheritance: