Skip to content

express上で部分文字列選択時に、指定したものとは関係なくjumanppコマンドが呼ばれる #268

Description

@miyagawananako

コマンドラインで-m kwjaを指定した際、部分文字列を選択するとjumanppが呼ばれてしまっているので、コマンドラインで指定したものがそのまま引き継がれるようにしてほしいです。

↓実際のログ

((.venv) ) nanacom@miyagawakanakonoMacBook-Pro lightblue % echo "太郎がランチを食べた。" | stack run lightblue -- +RTS -N -RTS jp -m kwja parse -s express --nparse 3 --ntypecheck 1 --nproof 1 --maxdepth 4 --time --depth 5
----------------------------------------------------------------------------------------------------
Starting Yesod server on http://localhost:3000/parsing
28/Apr/2026:18:04:25 +0900 [Info#yesod-core] Application launched @(yesod-core-1.6.21.0-G7ZpOgnjJXbCNRtJ08HhRJ:Yesod.Core.Dispatch src/Yesod/Core/Dispatch.hs:178:11)
Number of nodes in parseSentence': 3
d=1 / timeLimit : Just 2026-04-28 09:06:17.33269 UTC
d=1 / timeLimit : Just 2026-04-28 09:06:17.333063 UTC
d=1 / timeLimit : Just 2026-04-28 09:06:17.333281 UTC
length: [1,1,1]
127.0.0.1 - - [28/Apr/2026:18:04:37 +0900] "GET /parsing HTTP/1.1" 200 - "" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36"
useOnlybeamParseSetting
chart
28/Apr/2026:18:04:42 +0900 [Error#yesod-core] 
Ran commands: 
'echo "太郎がランチを食べた。" | jumanpp'

Exception: error running: 'echo "太郎がランチを食べた。" | jumanpp'
exit status: 127. exit code 127 usually means the command does not exist (in the PATH)
stderr: /bin/sh: jumanpp: command not found
 @(yesod-core-1.6.21.0-G7ZpOgnjJXbCNRtJ08HhRJ:Yesod.Core.Class.Yesod src/Yesod/Core/Class/Yesod.hs:688:5)
127.0.0.1 - - [28/Apr/2026:18:04:42 +0900] "GET /span?surface=%E5%A4%AA%E9%83%8E%E3%81%8C&beam=32 HTTP/1.1" 500 337 "http://localhost:3000/parsing" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions