Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing the output of a model #45

Closed
jylong91 opened this issue Jan 5, 2024 · 4 comments
Closed

Parsing the output of a model #45

jylong91 opened this issue Jan 5, 2024 · 4 comments

Comments

@jylong91
Copy link

jylong91 commented Jan 5, 2024

The output of the model largely depends on the prompt. When performing text classification tasks such as sst2, which requires the model to give negative or positive responses, the model may provide various forms of answers, and the form of answers from different models may vary. Is there a good way to parse these results?

@Immortalise
Copy link
Collaborator

Hi, our current approach involves directing the model to specifically output the desired labels ('positive' or 'negative'), which are then enclosed within a unique pattern (e.g., '<<<>>>'). This format allows for easy extraction using regular expressions.

@Rizwanali324
Copy link

im getting issues regarding qqp dataset evaluation for diff attacks. it gives me dataset_name attribute error when I run attacks

@Immortalise
Copy link
Collaborator

Hi, I have tested qqp dataset with Flan-T5 model using StressTest attack, it works for me. Could you please test it and paste the detailed error messages here?

Copy link

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants