Refine label complexity knowledge
This commit is contained in:
@@ -250,11 +250,18 @@ def parse_dimension_files() -> list[dict[str, str]]:
|
||||
if not root.exists():
|
||||
return []
|
||||
files: list[dict[str, str]] = []
|
||||
for path in sorted(root.glob("*.md")):
|
||||
if path.name == "README.md":
|
||||
for path in sorted(root.rglob("*.md")):
|
||||
if path == root / "README.md":
|
||||
continue
|
||||
text = read_text(path)
|
||||
files.append({"name": first_heading(text, path.stem), "path": rel(path)})
|
||||
item = {"name": first_heading(text, path.stem), "path": rel(path)}
|
||||
parent_dimension = extract_bullet_value(text, "父维度")
|
||||
output_field = extract_bullet_value(text, "输出字段")
|
||||
if parent_dimension:
|
||||
item["parent_dimension"] = parent_dimension
|
||||
if output_field:
|
||||
item["output_field"] = output_field
|
||||
files.append(item)
|
||||
return files
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user