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] ichiran-cli segment sentence into dictionary forms #14

Open
Sakusuke opened this issue Oct 5, 2021 · 2 comments
Open

Comments

@Sakusuke
Copy link

Sakusuke commented Oct 5, 2021

Requesting a flag which turns the input of a sentence like: "昨日すき焼きを食べました" into "昨日;すき焼き;を;食べる".
Needing this for automation with a command line dictionary. -i and -f already kinda do this but getting the dictionary forms from their output is a bit of a hassle and they take quite a bit longer to execute than a normal 'simple-segment' because of the included definitions (atleast that's what I'm guessing). Also this seems like a common enough usecase to warrent a flag.

@tshatrov
Copy link
Owner

tshatrov commented Oct 6, 2021

This operation is not well defined, i.e. きました -> くる(来る) or きる(着る). Also seems pretty difficult to implement in general, but I haven't thought about it very hard.

@Sakusuke
Copy link
Author

Sakusuke commented Oct 6, 2021

Very good point. The perfect solution would be analyzing context, but since that's way out of scope resorting to frequency would be good enough.

this sentence wouldn't work correctly without the space, but it merely serves as an example of how the flag's output could look like

$ ichiran-cli -foobar 彼は きました
彼
は
来る;着る

@Sakusuke Sakusuke closed this as completed Oct 8, 2021
@Sakusuke Sakusuke reopened this Oct 8, 2021
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