mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-05 05:40:05 +06:00

* Clean up model documentation * Formatting * Preparation work * Long lines * Main work on rst files * Cleanup all config files * Syntax fix * Clean all tokenizers * Work on first models * Models beginning * FaluBERT * All PyTorch models * All models * Long lines again * Fixes * More fixes * Update docs/source/model_doc/bert.rst Co-authored-by: Lysandre Debut <lysandre@huggingface.co> * Update docs/source/model_doc/electra.rst Co-authored-by: Lysandre Debut <lysandre@huggingface.co> * Last fixes Co-authored-by: Lysandre Debut <lysandre@huggingface.co>
41 lines
1.3 KiB
ReStructuredText
41 lines
1.3 KiB
ReStructuredText
Utilities for pipelines
|
|
-----------------------------------------------------------------------------------------------------------------------
|
|
|
|
This page lists all the utility functions the library provides for pipelines.
|
|
|
|
Most of those are only useful if you are studying the code of the models in the library.
|
|
|
|
|
|
Argument handling
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. autoclass:: transformers.pipelines.ArgumentHandler
|
|
|
|
.. autoclass:: transformers.pipelines.ZeroShotClassificationArgumentHandler
|
|
|
|
.. autoclass:: transformers.pipelines.QuestionAnsweringArgumentHandler
|
|
|
|
|
|
Data format
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. autoclass:: transformers.pipelines.PipelineDataFormat
|
|
:members:
|
|
|
|
.. autoclass:: transformers.pipelines.CsvPipelineDataFormat
|
|
:members:
|
|
|
|
.. autoclass:: transformers.pipelines.JsonPipelineDataFormat
|
|
:members:
|
|
|
|
.. autoclass:: transformers.pipelines.PipedPipelineDataFormat
|
|
:members:
|
|
|
|
|
|
Utilities
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. autofunction:: transformers.pipelines.get_framework
|
|
|
|
.. autoclass:: transformers.pipelines.PipelineException
|