Skip to content

新語スケルトンの語義(gloss)バックフィル & meta.needs_gloss / meta.variant_writings 仕様 #36

Description

@Iktahana

背景

script/create_entries.py(青空文庫由来の新語条作成)の導入により、語彙データに次の2つの新しい meta フィールドと、語義未確定の「スケルトン・エントリ」が追加されます。本 issue はその仕様の記録と、語義(gloss)バックフィルの追跡を目的とします。

新しい meta フィールド

フィールド 意味
meta.needs_gloss boolean true の場合、語義(definitions[*].gloss)が未生成のスケルトン。読み・品詞・青空文庫例句のみ確定済み。
meta.variant_writings string[] 既存エントリへ吸収した異表記(旧字体・歴史的仮名遣い等)。例: ["亞"]
  • 新語スケルトンの meta.source"Aozora-Crawler, Illusions-NewWord"
  • 新語の definitions[0].gloss は空文字 ""literary 例句のみ充填。

やること(gloss バックフィル)

  • meta.needs_gloss=true のエントリを抽出し、AI(Claude)で語義・standard 例文を生成して埋める(generate_examples.py / generate_relations.py と同系統のバッチ)。
  • 生成後 meta.needs_gloss を除去(または false)に更新。
  • 頻度しきい値で段階適用(meta.frequencies.aozora 降順)。まず高頻度から。

関連

  • データ生成: script/create_entries.py(PR/コミット 1306bdc9
  • 抽出元: script/extract_new_words.pynew_words.txt
  • 消費側対応 issue: illusions-lab/dict.illusions.app / Iktahana/illusions(別途起票)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions