赞
踩
Transformers库中的pipeline模块支持以下的NLP任务:
2023年9月,产品 pipeline 的代码,全列表如下,
"audio-classification"
: will return a [AudioClassificationPipeline
]."automatic-speech-recognition"
: will return a [AutomaticSpeechRecognitionPipeline
]."conversational"
: will return a [ConversationalPipeline
]."depth-estimation"
: will return a [DepthEstimationPipeline
]."document-question-answering"
: will return a [DocumentQuestionAnsweringPipeline
]."feature-extraction"
: will return a [FeatureExtractionPipeline
]."fill-mask"
: will return a [FillMaskPipeline
]:."image-classification"
: will return a [ImageClassificationPipeline
]."image-segmentation"
: will return a [ImageSegmentationPipeline
]."image-to-text"
: will return a [ImageToTextPipeline
]."mask-generation"
: will return a [MaskGenerationPipeline
]."object-detection"
: will return a [ObjectDetectionPipeline
]."question-answering"
: will return a [QuestionAnsweringPipeline
]."summarization"
: will return a [SummarizationPipeline
]."table-question-answering"
: will return a [TableQuestionAnsweringPipeline
]."text2text-generation"
: will return a [Text2TextGenerationPipeline
]."text-classification"
(alias "sentiment-analysis"
available): will return aTextClassificationPipeline
]."text-generation"
: will return a [TextGenerationPipeline
]:."token-classification"
(alias "ner"
available): will return a [TokenClassificationPipeline
]."translation"
: will return a [TranslationPipeline
]."translation_xx_to_yy"
: will return a [TranslationPipeline
]."video-classification"
: will return a [VideoClassificationPipeline
]."visual-question-answering"
: will return a [VisualQuestionAnsweringPipeline
]."zero-shot-classification"
: will return a [ZeroShotClassificationPipeline
]."zero-shot-image-classification"
: will return a [ZeroShotImageClassificationPipeline
]."zero-shot-audio-classification"
: will return a [ZeroShotAudioClassificationPipeline
]."zero-shot-object-detection"
: will return a [ZeroShotObjectDetectionPipeline
].完结!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。