Repository navigation
Refine earnings extraction rules for null handling and range forecasts - #16
Conversation
- FORMAT_RULES: null値の項目レベル省略ルールを追加(セクション省略だけでなく行単位の省略を明示) - テンプレート: items内のchangeがnullの場合に括弧ごと省略する注釈を追加 - 修正・配当セクション: 配当項目が本文にない場合は行ごと省略する指示を追加 - COMMON_RULES: 増減率が本文にない場合は括弧部分ごと省略する指示を追加 - EXTRACTION_RULES: null設定のガイダンスをより具体的に(JSON null vs 文字列"null"の区別) - スキーマ: 各フィールドにnull条件の説明コメントを追加 https://claude.ai/code/session_01HZQy3vHFiwbjuiHvhBoiwR
- レンジ予想(例: 3,706〜4,097百万円)を「未定」と誤判定する問題を修正 - 進捗率: レンジ予想の場合は下限・上限で算出し「XX.X%〜YY.Y%」形式に - 評価ルール: レンジ予想は中央値で判定、「未定」扱いしない指示を追加 - 前年同期比なし(初連結化等)の場合の評価を「★—(前年同期比なし)」に明確化 - 1パスモード・2パスモード両方の判定ルールを統一的に修正 https://claude.ai/code/session_01HZQy3vHFiwbjuiHvhBoiwR
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bcb6c31bb1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const progressOrLanding = isQuarterly | ||
| ? `■ 進捗: 経常利益の進捗率 − 標準進捗率(${standardRate}%)の差で判定 | ||
| ★5: +10pt以上 / ★4: +5〜+10pt / ★3: ±5pt / ★2: △5〜△10pt / ★1: △10pt超 / 通期予想が未定・ゼロ・赤字→「★—」` | ||
| ★5: +10pt以上 / ★4: +5〜+10pt / ★3: ±5pt / ★2: △5〜△10pt / ★1: △10pt超 / 通期予想が「未定」と明記→「★—」 |
There was a problem hiding this comment.
Treat zero/negative forecasts as non-ratable progress cases
This rule now reserves ★— only for forecasts explicitly marked as 未定, but the same earnings prompts still instruct 算出不可 when the full-year forecast is zero or negative (where progress-rate scoring is undefined). For quarterly disclosures with zero/赤字通期予想, the model receives conflicting instructions and can emit a normal star rating instead of an unratable result, which directly distorts the user-facing evaluation output.
Useful? React with 👍 / 👎.
|
|
||
| ## 修正・配当 | ||
| - 業績予想の修正: {{revision}} | ||
| ※以下のdividendフィールドがnullの項目は行ごと省略すること: |
There was a problem hiding this comment.
Remove internal dividend-null note from output template
This newly added plain-text instruction is inside the emitted template body, so the formatter is likely to reproduce it in end-user summaries as literal text. Because it is an internal prompting directive rather than disclosure content, it degrades output quality and readability whenever the earnings template is used.
Useful? React with 👍 / 👎.
Summary
This PR clarifies and strengthens the rules for handling missing data, null values, and range-format forecasts in earnings report extraction and formatting. The changes ensure consistent behavior when information is absent from source documents and improve handling of forecast ranges.
Key Changes
Null/Missing Data Handling
nullvalues (not string "null") for missing change rates and dividend fieldsRange Forecast Handling
Improved Clarity
Schema Documentation
progressobject (null when forecast is "未定")changefields in performance and forecast items (null when rate not in source)Implementation Details
https://claude.ai/code/session_01HZQy3vHFiwbjuiHvhBoiwR