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

Anchor with just one feature #26

Closed
KimBenjaminTang opened this issue Jun 27, 2019 · 2 comments
Closed

Anchor with just one feature #26

KimBenjaminTang opened this issue Jun 27, 2019 · 2 comments

Comments

@KimBenjaminTang
Copy link

Hello, I was experimenting with the provided jupyter notebook "Anchor for text.ipynb" and changed the example text "This is a good book ." to a much longer text (an actual book review)

For some reason though, the resulting anchor only shows one feature/anchor and nothing else seems to be considered. Is that the intended behavior or are longer texts not suitable with anchor?

image

@KimBenjaminTang KimBenjaminTang changed the title Empty anchor or anchor with just one feature Anchor with just one feature Jun 27, 2019
@marcotcr
Copy link
Owner

marcotcr commented Jul 1, 2019

Take a look at the examples (click the little boxes below). I'm guessing the model being used has a bias for predicting positive, such that even replacing most tokens in your long review with UNK does not cause a prediction of negative. If that is the case, an empty anchor or any arbitrary anchor is 'correct', i.e. under the assumption that the perturbation is replacing things with UNK this is a sufficient condition for a prediction of 'positive'.

@KimBenjaminTang
Copy link
Author

Ah okay, I understand it now, thanks!

It just surprised me that out of this long text as input, only one word was selected as the anchor. But I understand it with those examples better.

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