-
Notifications
You must be signed in to change notification settings - Fork 616
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
Add WordMatch + WordNoMatch descriptor #1334
Add WordMatch + WordNoMatch descriptor #1334
Conversation
Hi @jon-bown , Could you please double check your |
Done! Also want to point out that the error you're getting with my ItemMatch PR would need to be resolved here also. |
Thank you for the update, fair enough! I suggest you change a list to a tuple here as well, similar to what we’ve discussed in the related issue. This should help prevent the error and maintain consistency across both implementations. Thanks for your attention to detail! 🙏 |
Hi @jon-bown ,
I believe the string is being parsed incorrectly due to the nested double quotes inside the f-string. To resolve this, try changing the internal double quotes to single quotes ('_'). That should fix the issue! |
Hi @emeli-dral I believe I've fixed all the issues with this PR. Can you let me know if anything else needs to change? Thanks! |
Hi @jon-bown, To keep things consistent and avoid potential confusion for users, I’d suggest making the WordMatch descriptor work directly with tuples, just like the ItemMatch descriptor. Having one descriptor use tuples and another use lists might be a bit unclear. In the future, we plan to support lists as an input type in a more centralized way, and we’ll introduce list support across all relevant descriptors then. Thanks again for your hard work! |
Hi @emeli-dral, thanks for the update! As far as I can see, this implementation matches the ItemMatch/NoMatch implementation. Is there anything in particular you can see that needs to change? In the unit tests I convert the lists to tuples before they are fed to the feature, same as the other PR so it won't work with lists inside the data frame. I will also resolve the merge conflicts in the meantime. |
Hi @jon-bown, Thanks again for your patience and your thorough work on this! |
Implement
WordMatch
,WordNoMatch
, descriptor + feature and associated unit tests.Resolves issue #1308
Resolves issue #1309