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

Batch generator #1

Open
Yueeeeeeee opened this issue Dec 26, 2022 · 1 comment
Open

Batch generator #1

Yueeeeeeee opened this issue Dec 26, 2022 · 1 comment

Comments

@Yueeeeeeee
Copy link

Thanks for the great work! In the file batch_generator.py line 37, I noticed you have:

X = [self.inverse_map[y] + '=' + x for x, y in list(zip(X, Y))]

I'm wondering why you want to add self.inverse_map[y] + '=' to the text examples, and if that would leak label information in training? Thanks!

@jingyuanz
Copy link
Owner

hi, too long time ago i almost forgot but think the idea is to convert classification problem into matching problem so that you can get more training data. if you would concat k different labels with the sentence, you will have k times the training sample. the one concat with real label of course will trained to have max score. again, recommend to read protonet papers

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

No branches or pull requests

2 participants