mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
![]() * Adding `top_k` and `sort` arguments to `text-classification` pipeline. - Deprecate `return_all_scores` as `top_k` is more uniform with other pipelines, and a superset of what `return_all_scores` can do. BC is maintained though. `return_all_scores=True` -> `top_k=None` `return_all_scores=False` -> `top_k=1` - Using `top_k` will imply sorting the results, but using no argument will keep the results unsorted for backward compatibility. * Remove `sort`. * Fixing the test. * Remove bad doc. |
||
---|---|---|
.. | ||
__init__.py | ||
test_pipelines_audio_classification.py | ||
test_pipelines_automatic_speech_recognition.py | ||
test_pipelines_common.py | ||
test_pipelines_conversational.py | ||
test_pipelines_feature_extraction.py | ||
test_pipelines_fill_mask.py | ||
test_pipelines_image_classification.py | ||
test_pipelines_image_segmentation.py | ||
test_pipelines_object_detection.py | ||
test_pipelines_question_answering.py | ||
test_pipelines_summarization.py | ||
test_pipelines_table_question_answering.py | ||
test_pipelines_text_classification.py | ||
test_pipelines_text_generation.py | ||
test_pipelines_text2text_generation.py | ||
test_pipelines_token_classification.py | ||
test_pipelines_translation.py | ||
test_pipelines_zero_shot_image_classification.py | ||
test_pipelines_zero_shot.py |