Repository navigation
chore(docs): check the conversion results written in the doc tables against tugime-cli - #162
Merged
Merged
Conversation
…gainst tugime-cli intent(docs): the tables in README, how-it-works and limitations are written by hand and silently went stale when the conversion changed decision(docs): check rather than generate; the tables also hold values a script cannot produce (live conversion typed by a person, expected spellings, readings), so only columns whose header names a tugime-cli method are compared constraint(ci): CI measures only the lattice method without the model, so the check runs by hand with the figure scripts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 5 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
… each keystroke sequence on its own decision(docs): a column header that is neither checked nor listed as unchecked stops the check, so a new column cannot silently go unchecked decision(docs): run --live once per keystroke sequence like the input method, since the display generator may reuse what it remembered from the previous sequence decision(figures): prepare the system dictionary before building tugime-cli, in one prepareCli shared by the figure scripts and the doc check Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e doc tables Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
変換の精度(lattice)
before だけ正解 0 件 / after だけ正解 0 件 片方だけが正解した問題
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
文書の表に載せた変換の結果が古くなったら、気づける状態にする。README・
docs/how-it-works.md・docs/limitations.mdの表は手書きで、変換が変わっても黙って古くなる。#160 では README の表のCPUnohukagatakai.の行が、気づかないまま古くなっていた。CI は辞書と統計の変換だけを測り、表示の変換のモデルを使わないので、表の tugime の列を確かめられない。出所: 対話での依頼(#160 のスコープ外)。
変更内容
scripts/check-doc-examples.tsを足した。3 つの文書の表のうち、1 列目が打鍵列の行を取り出し、見出しごとに決めた方法で今の tugime-cli の出力と突き合わせる。合わない行を並べて終了コード 1 で終わる--method latticeの表示打鍵で 表示」の形。打鍵列に続けて打ったときの表示--wholeのひらがな)scripts/lib/svg.tsに、モデルとシステム辞書を用意して tugime-cli を組み立てるprepareCliを置いた。図のスクリプトのprepareもこれを使うので、図を作るときもシステム辞書を用意するdocs/development.mdに「文書の表を確かめる」の節を足した設計判断
合意事項
未合意の判断
スコープ外
code_validation.ymlは--method latticeだけを測る)。モデルの取得を CI に足すかは、CI の時間との兼ね合いで別に決めるcli・run・step・readLive・prepareCli)をscripts/lib/svg.tsから別のファイルに分けるsvg.tsを書き換えているので、3 つのマージ後に行うdocs/limitations.mdの本文の例(home no menu wo kaeru、--beforeを付けた例など)と README の使い方の表の Space の行は、決まった形の表ではないので今回は対象にしないtugime-cli --liveに複数の打鍵列を渡したとき、打鍵列の間で生成の覚えを捨てるtugime-evalと入力メソッドは打鍵列ごとに覚えを捨てるscripts/lib/swift-build.tsの指定に揃えるprepareCliはswift build -c releaseで、swiftBuildと指定が違う。本 PR の前からある完了条件
bun scripts/check-doc-examples.tsが「全 17 件中 0 件が合わない」を出し、終了コード 0 で終わる検証
docs/development.mdに 1 行を足しただけで、スクリプトは変わっていないtestgaotitanodeの行の tugime の列を「testが落ちた」に書き換えて走らせ、その行だけが「不一致 … 表: testが落ちた 今: testが落ちたので」と出て、「全 17 件中 1 件が合わない」で終了コード 1 になった。書き換えは戻したdocs/limitations.mdの表の見出し「期待」を「新しい方式」に書き換えて走らせ、「docs/limitations.md:13 の列「新しい方式」を突き合わせるか決まっていない」で止まった。書き換えは戻した確認事項
なし
🤖 Generated with Claude Code