@@ -538,6 +538,8 @@ You can create `Pipeline` objects for the following down-stream tasks:
...
@@ -538,6 +538,8 @@ You can create `Pipeline` objects for the following down-stream tasks:
-`text-classification`: Initialize a `TextClassificationPipeline` directly, or see `sentiment-analysis` for an example.
-`text-classification`: Initialize a `TextClassificationPipeline` directly, or see `sentiment-analysis` for an example.
-`question-answering`: Provided some context and a question refering to the context, it will extract the answer to the question in the context.
-`question-answering`: Provided some context and a question refering to the context, it will extract the answer to the question in the context.
-`fill-mask`: Takes an input sequence containing a masked token (e.g. `<mask>`) and return list of most probable filled sequences, with their probabilities.
-`fill-mask`: Takes an input sequence containing a masked token (e.g. `<mask>`) and return list of most probable filled sequences, with their probabilities.
summarizer("Sam Shleifer writes the best docstring examples in the whole world.", min_length=5, max_length=20)
summarizer("Sam Shleifer writes the best docstring examples in the whole world.", min_length=5, max_length=20)
Supported Models:
The models that this pipeline can use are models that have been fine-tuned on a summarization task,
The models that this pipeline can use are models that have been fine-tuned on a summarization task, which is currently, '`bart-large-cnn`', '`t5-small`', '`t5-base`', '`t5-large`', '`t5-3b`', '`t5-11b`'.
which is currently, '`bart-large-cnn`', '`t5-small`', '`t5-base`', '`t5-large`', '`t5-3b`', '`t5-11b`'.