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

Product name edge case #22

Open
CalebCourier opened this issue Nov 13, 2024 · 1 comment
Open

Product name edge case #22

CalebCourier opened this issue Nov 13, 2024 · 1 comment
Assignees

Comments

@CalebCourier
Copy link
Contributor

There's an edge case with this validator where it doesn't recognize products named after the competitor as a mention of the competitor.

Examples that will pass validation:
"I use an Apple Watch."
"I use microcomputers like the TRS-80 and Apple II."

It appears that the model does not recognize these as entities. So the question is really if that's the correct or expected behaviour? i.e. Is mentioning a well known product from a competitor that carries that competitor's name equivocally a mention of the competitor itself?

@JosephCatrambone
Copy link
Contributor

I would speculate that the NER step/tokenization is pulling "Apple II" as a named entity and then not matching it against the known competitor 'Apple'. Our approach to the task is pretty basic: pull named entities -> check named entities against the set of competitors. (There are a few optimizations like prechecks, but that's besides the point.)

I'm not sure there's a way to handle the nuance of eponymous company products without a smarter model. I'd tried using BART MNLI and it works incredibly well for this task, but pretty much requires a GPU and might not be as fast. Not that the current model is exactly peppy.

@JosephCatrambone JosephCatrambone self-assigned this Nov 13, 2024
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