Update doc for {Summarization,Translation}Pipeline and other tweaks

This commit is contained in:
Julien Chaumond
2020-04-07 13:44:02 -04:00
parent a1b3b4167e
commit 83703cd077
9 changed files with 69 additions and 25 deletions

View File

@@ -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.
- `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.
- `summarization`
- `translation_xx_to_yy`
```python
from transformers import pipeline