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

[Feature Request] Generate all possible Furigana from Kanji Name #39

Open
gopalkriagg opened this issue Dec 3, 2023 · 3 comments
Open

Comments

@gopalkriagg
Copy link

First of all, thank you so much @rskmoi for making this package! I tried the demo on https://rskmoi-namedivider-python-examplesdemoexample-streamlit-x2ba84.streamlit.app/ and the results are amazing!
I intend to try it out in our business card management application to increase the accuracy of name dividing.

I have a request: Is it possible to get Kanji names Furigana too, especially all the possible candidates? OSS packages like Sudachi give only one candidate for the Furigana but I would like all possible suggestions for the Furigana.
For example, for the family name "大谷" Sudachi gives "オオヤ" as the output (please see attachment) but probably "オオタニ" is a more common Furigana of the name.
Screenshot 2023-12-03 at 13 35 03

@gopalkriagg gopalkriagg changed the title [Feature Request] Ability to generate all possible furigana from name [Feature Request] Generate all possible Furigana from Kanji Name Dec 3, 2023
@rskmoi
Copy link
Owner

rskmoi commented Dec 6, 2023

Thank you for your request. I appreciate being able to understand what kind of features are needed.
It seems like it will take quite some time to implement those features, but I may consider working on them in the future.

If I may suggest an alternative solution, namelti seems like it could meet your needs.
https://github.com/neologd/namelti
https://engineering.linecorp.com/ja/blog/namelti
I haven't tried it myself yet, but it might be helpful for you.

@rskmoi
Copy link
Owner

rskmoi commented Dec 6, 2023

Namelti worked well! However, some adjustments were needed during the build process. If time allows, I may work on integrating namelti with namedivider-python.

The following is the output result of namelti_cli. I have made some edits to the source code, changing the output format slightly.
スクリーンショット 2023-12-06 23-33-28

@gopalkriagg
Copy link
Author

Thank you so much for suggesting this package and taking the time to compile it! I tried for a few hours to compile it but was unsuccessful :( I was unable to compile the namelti_server. I wish using this library (like your package or Sudachipy) was easier.

I liked the myoji-yurai website (which you have also linked) as it gave not just various furigana but also probably in the order of decreasing probability ( https://myoji-yurai.net/searchResult.htm?myojiKanji=%E5%A4%A7%E8%B0%B7 )

Although, I am not a very good programmer as you are, please let me know if I can help integrate the namelti package into your package (or create an easier-to-use fork of that package).

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