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

Fixing SST-2 subtree logic to match GLUE SST-2 #1112

Merged
merged 1 commit into from
Mar 7, 2021

Conversation

ANarayan
Copy link
Collaborator

@ANarayan ANarayan commented Mar 6, 2021

This PR makes the following changes to the SST datasets:

  1. Adds remove_duplicates parameter to SST classes: Parameter is necessary to make the SST-2 dataset match the SST-2 GLUE Dataset. remove_duplicates was added as a parameter as some SST datasets (i.e. torchtext) do not remove duplicates
  2. In the construction of phrase2id (lines 78-82), removes the statement which actively replaced -LRB- and -RRB- with parenthesis: this logic was causing some phrases to be wrongfully marked as neutral

@w4nderlust w4nderlust merged commit f662faf into ludwig-ai:master Mar 7, 2021
@ANarayan ANarayan deleted the sst2-subtrees-fix branch April 3, 2021 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants