Unverified Commit b2c863a3 authored by Steven Liu's avatar Steven Liu Committed by GitHub
Browse files

Remove double brackets (#20307)

* remove double brackets

* oops get other bracket
parent f10cdba2
...@@ -81,7 +81,7 @@ class AudioClassificationPipeline(Pipeline): ...@@ -81,7 +81,7 @@ class AudioClassificationPipeline(Pipeline):
[{'score': 0.997, 'label': '_unknown_'}, {'score': 0.002, 'label': 'left'}, {'score': 0.0, 'label': 'yes'}, {'score': 0.0, 'label': 'down'}, {'score': 0.0, 'label': 'stop'}] [{'score': 0.997, 'label': '_unknown_'}, {'score': 0.002, 'label': 'left'}, {'score': 0.0, 'label': 'yes'}, {'score': 0.0, 'label': 'down'}, {'score': 0.0, 'label': 'stop'}]
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This pipeline can currently be loaded from [`pipeline`] using the following task identifier: This pipeline can currently be loaded from [`pipeline`] using the following task identifier:
......
...@@ -118,7 +118,7 @@ class AutomaticSpeechRecognitionPipeline(ChunkPipeline): ...@@ -118,7 +118,7 @@ class AutomaticSpeechRecognitionPipeline(ChunkPipeline):
{'text': ' He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick, peppered flour fat and sauce.'} {'text': ' He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick, peppered flour fat and sauce.'}
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
Arguments: Arguments:
model ([`PreTrainedModel`] or [`TFPreTrainedModel`]): model ([`PreTrainedModel`] or [`TFPreTrainedModel`]):
......
...@@ -181,7 +181,7 @@ class ConversationalPipeline(Pipeline): ...@@ -181,7 +181,7 @@ class ConversationalPipeline(Pipeline):
"It's a comedy." "It's a comedy."
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This conversational pipeline can currently be loaded from [`pipeline`] using the following task identifier: This conversational pipeline can currently be loaded from [`pipeline`] using the following task identifier:
`"conversational"`. `"conversational"`.
......
...@@ -36,7 +36,7 @@ class DepthEstimationPipeline(Pipeline): ...@@ -36,7 +36,7 @@ class DepthEstimationPipeline(Pipeline):
torch.Size([1, 384, 384]) torch.Size([1, 384, 384])
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This depth estimation pipeline can currently be loaded from [`pipeline`] using the following task identifier: This depth estimation pipeline can currently be loaded from [`pipeline`] using the following task identifier:
......
...@@ -119,7 +119,7 @@ class DocumentQuestionAnsweringPipeline(ChunkPipeline): ...@@ -119,7 +119,7 @@ class DocumentQuestionAnsweringPipeline(ChunkPipeline):
[{'score': 0.425, 'answer': 'us-001', 'start': 16, 'end': 16}] [{'score': 0.425, 'answer': 'us-001', 'start': 16, 'end': 16}]
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This document question answering pipeline can currently be loaded from [`pipeline`] using the following task This document question answering pipeline can currently be loaded from [`pipeline`] using the following task
identifier: `"document-question-answering"`. identifier: `"document-question-answering"`.
......
...@@ -20,7 +20,7 @@ class FeatureExtractionPipeline(Pipeline): ...@@ -20,7 +20,7 @@ class FeatureExtractionPipeline(Pipeline):
torch.Size([1, 8, 768]) torch.Size([1, 8, 768])
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This feature extraction pipeline can currently be loaded from [`pipeline`] using the task identifier: This feature extraction pipeline can currently be loaded from [`pipeline`] using the task identifier:
`"feature-extraction"`. `"feature-extraction"`.
......
...@@ -46,7 +46,7 @@ class FillMaskPipeline(Pipeline): ...@@ -46,7 +46,7 @@ class FillMaskPipeline(Pipeline):
[{'score': 0.042, 'token': 3291, 'token_str': 'problem', 'sequence': 'this is a simple problem.'}, {'score': 0.031, 'token': 3160, 'token_str': 'question', 'sequence': 'this is a simple question.'}, {'score': 0.03, 'token': 8522, 'token_str': 'equation', 'sequence': 'this is a simple equation.'}, {'score': 0.027, 'token': 2028, 'token_str': 'one', 'sequence': 'this is a simple one.'}, {'score': 0.024, 'token': 3627, 'token_str': 'rule', 'sequence': 'this is a simple rule.'}] [{'score': 0.042, 'token': 3291, 'token_str': 'problem', 'sequence': 'this is a simple problem.'}, {'score': 0.031, 'token': 3160, 'token_str': 'question', 'sequence': 'this is a simple question.'}, {'score': 0.03, 'token': 8522, 'token_str': 'equation', 'sequence': 'this is a simple equation.'}, {'score': 0.027, 'token': 2028, 'token_str': 'one', 'sequence': 'this is a simple one.'}, {'score': 0.024, 'token': 3627, 'token_str': 'rule', 'sequence': 'this is a simple rule.'}]
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This mask filling pipeline can currently be loaded from [`pipeline`] using the following task identifier: This mask filling pipeline can currently be loaded from [`pipeline`] using the following task identifier:
`"fill-mask"`. `"fill-mask"`.
......
...@@ -44,7 +44,7 @@ class ImageClassificationPipeline(Pipeline): ...@@ -44,7 +44,7 @@ class ImageClassificationPipeline(Pipeline):
[{'score': 0.442, 'label': 'macaw'}, {'score': 0.088, 'label': 'popinjay'}, {'score': 0.075, 'label': 'parrot'}, {'score': 0.073, 'label': 'parodist, lampooner'}, {'score': 0.046, 'label': 'poll, poll_parrot'}] [{'score': 0.442, 'label': 'macaw'}, {'score': 0.088, 'label': 'popinjay'}, {'score': 0.075, 'label': 'parrot'}, {'score': 0.073, 'label': 'parodist, lampooner'}, {'score': 0.046, 'label': 'poll, poll_parrot'}]
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This image classification pipeline can currently be loaded from [`pipeline`] using the following task identifier: This image classification pipeline can currently be loaded from [`pipeline`] using the following task identifier:
`"image-classification"`. `"image-classification"`.
......
...@@ -40,7 +40,7 @@ class ImageToTextPipeline(Pipeline): ...@@ -40,7 +40,7 @@ class ImageToTextPipeline(Pipeline):
[{'generated_text': 'two birds are standing next to each other '}] [{'generated_text': 'two birds are standing next to each other '}]
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This image to text pipeline can currently be loaded from pipeline() using the following task identifier: This image to text pipeline can currently be loaded from pipeline() using the following task identifier:
"image-to-text". "image-to-text".
......
...@@ -38,7 +38,7 @@ class ObjectDetectionPipeline(Pipeline): ...@@ -38,7 +38,7 @@ class ObjectDetectionPipeline(Pipeline):
>>> # x, y are expressed relative to the top left hand corner. >>> # x, y are expressed relative to the top left hand corner.
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This object detection pipeline can currently be loaded from [`pipeline`] using the following task identifier: This object detection pipeline can currently be loaded from [`pipeline`] using the following task identifier:
`"object-detection"`. `"object-detection"`.
......
...@@ -236,7 +236,7 @@ class QuestionAnsweringPipeline(ChunkPipeline): ...@@ -236,7 +236,7 @@ class QuestionAnsweringPipeline(ChunkPipeline):
{'score': 0.9191, 'start': 34, 'end': 40, 'answer': 'Berlin'} {'score': 0.9191, 'start': 34, 'end': 40, 'answer': 'Berlin'}
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This question answering pipeline can currently be loaded from [`pipeline`] using the following task identifier: This question answering pipeline can currently be loaded from [`pipeline`] using the following task identifier:
`"question-answering"`. `"question-answering"`.
......
...@@ -107,7 +107,7 @@ class TableQuestionAnsweringPipeline(Pipeline): ...@@ -107,7 +107,7 @@ class TableQuestionAnsweringPipeline(Pipeline):
{'answer': 'AVERAGE > 36542', 'coordinates': [(0, 1)], 'cells': ['36542'], 'aggregator': 'AVERAGE'} {'answer': 'AVERAGE > 36542', 'coordinates': [(0, 1)], 'cells': ['36542'], 'aggregator': 'AVERAGE'}
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This tabular question answering pipeline can currently be loaded from [`pipeline`] using the following task This tabular question answering pipeline can currently be loaded from [`pipeline`] using the following task
identifier: `"table-question-answering"`. identifier: `"table-question-answering"`.
......
...@@ -39,7 +39,7 @@ class Text2TextGenerationPipeline(Pipeline): ...@@ -39,7 +39,7 @@ class Text2TextGenerationPipeline(Pipeline):
[{'generated_text': 'question: Who created the RuPERTa-base?'}] [{'generated_text': 'question: Who created the RuPERTa-base?'}]
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This Text2TextGenerationPipeline pipeline can currently be loaded from [`pipeline`] using the following task This Text2TextGenerationPipeline pipeline can currently be loaded from [`pipeline`] using the following task
......
...@@ -63,7 +63,7 @@ class TextClassificationPipeline(Pipeline): ...@@ -63,7 +63,7 @@ class TextClassificationPipeline(Pipeline):
[{'label': 'NEGATIVE', 'score': 0.996}] [{'label': 'NEGATIVE', 'score': 0.996}]
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This text classification pipeline can currently be loaded from [`pipeline`] using the following task identifier: This text classification pipeline can currently be loaded from [`pipeline`] using the following task identifier:
`"sentiment-analysis"` (for classifying sequences according to positive or negative sentiments). `"sentiment-analysis"` (for classifying sequences according to positive or negative sentiments).
......
...@@ -36,7 +36,7 @@ class TextGenerationPipeline(Pipeline): ...@@ -36,7 +36,7 @@ class TextGenerationPipeline(Pipeline):
>>> outputs = generator("My tart needs some", num_return_sequences=4, return_full_text=False) >>> outputs = generator("My tart needs some", num_return_sequences=4, return_full_text=False)
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This language generation pipeline can currently be loaded from [`pipeline`] using the following task identifier: This language generation pipeline can currently be loaded from [`pipeline`] using the following task identifier:
`"text-generation"`. `"text-generation"`.
......
...@@ -110,7 +110,7 @@ class TokenClassificationPipeline(Pipeline): ...@@ -110,7 +110,7 @@ class TokenClassificationPipeline(Pipeline):
[{'entity_group': 'PRON', 'score': 0.999, 'word': 'my', 'start': 0, 'end': 2}, {'entity_group': 'NOUN', 'score': 0.997, 'word': 'name', 'start': 3, 'end': 7}, {'entity_group': 'AUX', 'score': 0.994, 'word': 'is', 'start': 8, 'end': 10}, {'entity_group': 'PROPN', 'score': 0.999, 'word': 'sarah', 'start': 11, 'end': 16}, {'entity_group': 'CCONJ', 'score': 0.999, 'word': 'and', 'start': 17, 'end': 20}, {'entity_group': 'PRON', 'score': 0.999, 'word': 'i', 'start': 21, 'end': 22}, {'entity_group': 'VERB', 'score': 0.998, 'word': 'live', 'start': 23, 'end': 27}, {'entity_group': 'ADP', 'score': 0.999, 'word': 'in', 'start': 28, 'end': 30}, {'entity_group': 'PROPN', 'score': 0.999, 'word': 'london', 'start': 31, 'end': 37}] [{'entity_group': 'PRON', 'score': 0.999, 'word': 'my', 'start': 0, 'end': 2}, {'entity_group': 'NOUN', 'score': 0.997, 'word': 'name', 'start': 3, 'end': 7}, {'entity_group': 'AUX', 'score': 0.994, 'word': 'is', 'start': 8, 'end': 10}, {'entity_group': 'PROPN', 'score': 0.999, 'word': 'sarah', 'start': 11, 'end': 16}, {'entity_group': 'CCONJ', 'score': 0.999, 'word': 'and', 'start': 17, 'end': 20}, {'entity_group': 'PRON', 'score': 0.999, 'word': 'i', 'start': 21, 'end': 22}, {'entity_group': 'VERB', 'score': 0.998, 'word': 'live', 'start': 23, 'end': 27}, {'entity_group': 'ADP', 'score': 0.999, 'word': 'in', 'start': 28, 'end': 30}, {'entity_group': 'PROPN', 'score': 0.999, 'word': 'london', 'start': 31, 'end': 37}]
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This token recognition pipeline can currently be loaded from [`pipeline`] using the following task identifier: This token recognition pipeline can currently be loaded from [`pipeline`] using the following task identifier:
`"ner"` (for predicting the classes of tokens in a sequence: person, organisation, location or miscellaneous). `"ner"` (for predicting the classes of tokens in a sequence: person, organisation, location or miscellaneous).
......
...@@ -41,7 +41,7 @@ class VisualQuestionAnsweringPipeline(Pipeline): ...@@ -41,7 +41,7 @@ class VisualQuestionAnsweringPipeline(Pipeline):
[{'score': 0.996, 'answer': 'no'}] [{'score': 0.996, 'answer': 'no'}]
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This visual question answering pipeline can currently be loaded from [`pipeline`] using the following task This visual question answering pipeline can currently be loaded from [`pipeline`] using the following task
identifiers: `"visual-question-answering", "vqa"`. identifiers: `"visual-question-answering", "vqa"`.
......
...@@ -74,7 +74,7 @@ class ZeroShotClassificationPipeline(ChunkPipeline): ...@@ -74,7 +74,7 @@ class ZeroShotClassificationPipeline(ChunkPipeline):
{'sequence': 'I have a problem with my iphone that needs to be resolved asap!!', 'labels': ['english', 'german'], 'scores': [0.814, 0.186]} {'sequence': 'I have a problem with my iphone that needs to be resolved asap!!', 'labels': ['english', 'german'], 'scores': [0.814, 0.186]}
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This NLI pipeline can currently be loaded from [`pipeline`] using the following task identifier: This NLI pipeline can currently be loaded from [`pipeline`] using the following task identifier:
`"zero-shot-classification"`. `"zero-shot-classification"`.
......
...@@ -52,7 +52,7 @@ class ZeroShotImageClassificationPipeline(ChunkPipeline): ...@@ -52,7 +52,7 @@ class ZeroShotImageClassificationPipeline(ChunkPipeline):
[{'score': 0.996, 'label': 'black and white'}, {'score': 0.003, 'label': 'photorealist'}, {'score': 0.0, 'label': 'painting'}] [{'score': 0.996, 'label': 'black and white'}, {'score': 0.003, 'label': 'photorealist'}, {'score': 0.0, 'label': 'painting'}]
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This image classification pipeline can currently be loaded from [`pipeline`] using the following task identifier: This image classification pipeline can currently be loaded from [`pipeline`] using the following task identifier:
`"zero-shot-image-classification"`. `"zero-shot-image-classification"`.
......
...@@ -44,7 +44,7 @@ class ZeroShotObjectDetectionPipeline(ChunkPipeline): ...@@ -44,7 +44,7 @@ class ZeroShotObjectDetectionPipeline(ChunkPipeline):
[{'score': 0.119, 'label': 'bird', 'box': {'xmin': 71, 'ymin': 170, 'xmax': 410, 'ymax': 508}}] [{'score': 0.119, 'label': 'bird', 'box': {'xmin': 71, 'ymin': 170, 'xmax': 410, 'ymax': 508}}]
``` ```
[Learn more about the basics of using a pipeline in the [pipeline tutorial]](../pipeline_tutorial) Learn more about the basics of using a pipeline in the [pipeline tutorial](../pipeline_tutorial)
This object detection pipeline can currently be loaded from [`pipeline`] using the following task identifier: This object detection pipeline can currently be loaded from [`pipeline`] using the following task identifier:
`"zero-shot-object-detection"`. `"zero-shot-object-detection"`.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment