Skip to content

All labels get 0.99 as score #12

@stephantul

Description

@stephantul

Hello!

I am trying out gliclass. If I follow the example with a simple query, I see that every class label I pass gets 0.999 as a score. Is this expected?

labels = ["sports", "weather", "entertainment", "travel"]

results = pipeline(["weather"], labels, threshold=0.5)
print(results)
# [[{'label': 'sports', 'score': 0.9976825714111328},
#   {'label': 'weather', 'score': 0.9999980926513672},
#   {'label': 'entertainment', 'score': 0.9933828115463257},
#   {'label': 'travel', 'score': 0.9999979734420776}]]

pipeline was initialized as in the README.

Stéphan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions