Skip to content

Improving extract_label usage #22

@laoliu5280

Description

@laoliu5280

Currently, users need to either define their own extract_label function or use the default one, which searches for the regular expression r"final answer:\s+(.*)".

However, for this to work properly and avoid random formatting from LLM outputs, we default to checking the lower case outputs when using the default extract_label. This can lead to failure to compute the accuracy if the groundtruth labels provided in datasets have capitalized letters. It is also suboptimal to ask every user to use lower case labels only.

There can be a quick fix, by changing the get_results function in hypogenic.utils.

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions