-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Support a classify_all
method
#96
Comments
How about changing the
|
Thanks for the suggestions! Having both
I do like the idea of putting |
Can't
I felt when the database consists of several hundreds of schemes, it would be apt to ask for the best 5 or so than a match against every single scheme in the data. (If we're providing % matches it might match against many meters) |
Sadly Rust doesn't support default arguments, so there's no way to both have a default value and reduce friction for the user. (There are workarounds like having an
Good point! So perhaps:
|
What kind of response struct should be returned? If classify is just returning one response, should it be the one giving Pada match / Prefix Match / None(edit_distance or any other metric) in case there is not Full match? |
How about something like:
Then both methods can return a |
Still tweaking the output format, but I have a workable |
Problem
Chandas
contains aclassify
method that returns a single result. But sometimes it is interesting to look at all possible results and let the user decide how to use them.Proposed solution
Create a
classify_all
method that returns all padyas (vrttas + jatis) that don't have aNone
match.The text was updated successfully, but these errors were encountered: