-
Notifications
You must be signed in to change notification settings - Fork 27.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from huggingface/master
Update from source
- Loading branch information
Showing
231 changed files
with
12,726 additions
and
6,700 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Utilities for Tokenizers | ||
------------------------ | ||
|
||
This page lists all the utility functions used by the tokenizers, mainly the class | ||
:class:`~transformers.tokenization_utils_base.PreTrainedTokenizerBase` that implements the common methods between | ||
:class:`~transformers.PreTrainedTokenizer` and :class:`~transformers.PreTrainedTokenizerFast` and the mixin | ||
:class:`~transformers.tokenization_utils_base.SpecialTokensMixin`. | ||
|
||
Most of those are only useful if you are studying the code of the tokenizers in the library. | ||
|
||
``PreTrainedTokenizerBase`` | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: transformers.tokenization_utils_base.PreTrainedTokenizerBase | ||
:special-members: __call__ | ||
:members: | ||
|
||
|
||
``SpecialTokensMixin`` | ||
~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: transformers.tokenization_utils_base.SpecialTokensMixin | ||
:members: | ||
|
||
|
||
Enums and namedtuples | ||
~~~~~~~~~~~~~~~~~~~~~ | ||
.. autoclass:: transformers.tokenization_utils_base.ExplicitEnum | ||
|
||
.. autoclass:: transformers.tokenization_utils_base.PaddingStrategy | ||
|
||
.. autoclass:: transformers.tokenization_utils_base.TensorType | ||
|
||
.. autoclass:: transformers.tokenization_utils_base.TruncationStrategy | ||
|
||
.. autoclass:: transformers.tokenization_utils_base.CharSpan | ||
|
||
.. autoclass:: transformers.tokenization_utils_base.TokenSpan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.