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

Which mode/method to use that is agnostic to word orders? #51

Open
skwskwskwskw opened this issue Nov 16, 2022 · 1 comment
Open

Which mode/method to use that is agnostic to word orders? #51

skwskwskwskw opened this issue Nov 16, 2022 · 1 comment

Comments

@skwskwskwskw
Copy link

Hi,

Would like to understand which matching algo/model is agnostic to word orders? I realised for instance Levenshtein Distance might be affected by word orders.

Thanks

@MaartenGr
Copy link
Owner

You can use TF-IDF for that since it typically only considers n-grams on a token level. Due to its bag-of-words like approach, it does not take the order of n-grams into account and therefore also not the order of words.

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