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

Function to get match matrices #44

Open
sinking-point opened this issue Sep 12, 2023 · 1 comment
Open

Function to get match matrices #44

sinking-point opened this issue Sep 12, 2023 · 1 comment

Comments

@sinking-point
Copy link

get_word_aligns returns a mapping (list of tuples). Some applications call for different matching policies, e.g. a one-to-one or one-to-many mapping.

It would be useful to separate out the first part into a new function e.g. get_word_align_matrices, that is essentially this part of get_word_aligns. This would allow the user to implement their own matching algorithm on the matrix however they want.

It's a very easy change that would add a lot of value.

@sinking-point
Copy link
Author

Correction: I think sim is the correct thing to return for this. The other matrices are just 1 for match, 0 for no match. I originally thought they would be probability-of-match matrices.

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

1 participant