[{"data":1,"prerenderedAt":273},["ShallowReactive",2],{"project-\u002Fprojects\u002Fdata-modeling-tool":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"weight":10,"featured":6,"tags":11,"body":15,"_type":267,"_id":268,"_source":269,"_file":270,"_stem":271,"_extension":272},"\u002Fprojects\u002Fdata-modeling-tool","projects",false,"","数据建模工具 · 标准字段生成","网易国贸集团数据中台项目中自研的建模辅助工具：中文字段注释经分词匹配标准词根，自动生成规范的英文字段名，并配套模型 DDL\u002FDML 生成与词根管理。",70,[12,13,14],"数据建模","数据标准","数仓",{"type":16,"children":17,"toc":259},"root",[18,26,32,37,117,122,194,207,212,232,237],{"type":19,"tag":20,"props":21,"children":23},"element","h2",{"id":22},"项目定位",[24],{"type":25,"value":22},"text",{"type":19,"tag":27,"props":28,"children":29},"p",{},[30],{"type":25,"value":31},"在网易负责国贸集团“1+1+N”数据中台时，模型覆盖 13 个部室、28 条职能条线，字段命名如果只靠人工对照规范，很难保持一致。这个工具把「统一词根」从一份规范文档变成可以直接调用的服务：输入中文字段注释，返回分词结果、每个词根对应的英文名，以及按顺序拼接好的标准字段名，支持批量生成。",{"type":19,"tag":20,"props":33,"children":35},{"id":34},"它能做什么",[36],{"type":25,"value":34},{"type":19,"tag":38,"props":39,"children":40},"table",{},[41,60],{"type":19,"tag":42,"props":43,"children":44},"thead",{},[45],{"type":19,"tag":46,"props":47,"children":48},"tr",{},[49,55],{"type":19,"tag":50,"props":51,"children":52},"th",{},[53],{"type":25,"value":54},"能力",{"type":19,"tag":50,"props":56,"children":57},{},[58],{"type":25,"value":59},"说明",{"type":19,"tag":61,"props":62,"children":63},"tbody",{},[64,78,91,104],{"type":19,"tag":46,"props":65,"children":66},{},[67,73],{"type":19,"tag":68,"props":69,"children":70},"td",{},[71],{"type":25,"value":72},"标准字段生成",{"type":19,"tag":68,"props":74,"children":75},{},[76],{"type":25,"value":77},"中文注释 → 分词 → 匹配标准词根 → 拼接英文字段名",{"type":19,"tag":46,"props":79,"children":80},{},[81,86],{"type":19,"tag":68,"props":82,"children":83},{},[84],{"type":25,"value":85},"自定义分词",{"type":19,"tag":68,"props":87,"children":88},{},[89],{"type":25,"value":90},"通过用户词典把多个词登记为一个数据元，再评审并修正新词根的英文名",{"type":19,"tag":46,"props":92,"children":93},{},[94,99],{"type":19,"tag":68,"props":95,"children":96},{},[97],{"type":25,"value":98},"模型 DDL \u002F DML",{"type":19,"tag":68,"props":100,"children":101},{},[102],{"type":25,"value":103},"结合在线 mapping 文档生成可执行的建表语句；DML 生成目前只支持 Hive 引擎",{"type":19,"tag":46,"props":105,"children":106},{},[107,112],{"type":19,"tag":68,"props":108,"children":109},{},[110],{"type":25,"value":111},"词根管理",{"type":19,"tag":68,"props":113,"children":114},{},[115],{"type":25,"value":116},"批量查询词根（返回中文名、翻译参考、词频、英文名），以及词根更新",{"type":19,"tag":27,"props":118,"children":119},{},[120],{"type":25,"value":121},"几个真实的生成结果：",{"type":19,"tag":38,"props":123,"children":124},{},[125,146],{"type":19,"tag":42,"props":126,"children":127},{},[128],{"type":19,"tag":46,"props":129,"children":130},{},[131,136,141],{"type":19,"tag":50,"props":132,"children":133},{},[134],{"type":25,"value":135},"中文注释",{"type":19,"tag":50,"props":137,"children":138},{},[139],{"type":25,"value":140},"分词与词根",{"type":19,"tag":50,"props":142,"children":143},{},[144],{"type":25,"value":145},"标准字段",{"type":19,"tag":61,"props":147,"children":148},{},[149,172],{"type":19,"tag":46,"props":150,"children":151},{},[152,157,162],{"type":19,"tag":68,"props":153,"children":154},{},[155],{"type":25,"value":156},"是否评审",{"type":19,"tag":68,"props":158,"children":159},{},[160],{"type":25,"value":161},"是否 + 评审",{"type":19,"tag":68,"props":163,"children":164},{},[165],{"type":19,"tag":166,"props":167,"children":169},"code",{"className":168},[],[170],{"type":25,"value":171},"is_review",{"type":19,"tag":46,"props":173,"children":174},{},[175,180,185],{"type":19,"tag":68,"props":176,"children":177},{},[178],{"type":25,"value":179},"数据仓库标准",{"type":19,"tag":68,"props":181,"children":182},{},[183],{"type":25,"value":184},"数据 + 仓库 + 标准",{"type":19,"tag":68,"props":186,"children":187},{},[188],{"type":19,"tag":166,"props":189,"children":191},{"className":190},[],[192],{"type":25,"value":193},"data_wrhs_std",{"type":19,"tag":27,"props":195,"children":196},{},[197,199,205],{"type":25,"value":198},"「是否评审」如果登记成一个数据元，程序按默认规则生成的是 ",{"type":19,"tag":166,"props":200,"children":202},{"className":201},[],[203],{"type":25,"value":204},"whthr_rvw",{"type":25,"value":206},"，不够准确，这时就需要走一次词根评审，把英文名改对。自定义分词和词根评审一起，构成了词根库持续沉淀的闭环。",{"type":19,"tag":20,"props":208,"children":210},{"id":209},"结果与局限",[211],{"type":25,"value":209},{"type":19,"tag":213,"props":214,"children":215},"ul",{},[216,222,227],{"type":19,"tag":217,"props":218,"children":219},"li",{},[220],{"type":25,"value":221},"在国贸集团数据中台项目中，建模效率提升 50% 以上，并沉淀了可跨项目复用的行业词根资产库。",{"type":19,"tag":217,"props":223,"children":224},{},[225],{"type":25,"value":226},"「一种基于自然语言分词算法的标准字段生成方案」形成专利提案（提案号 N34F00121CN）。",{"type":19,"tag":217,"props":228,"children":229},{},[230],{"type":25,"value":231},"已知局限：分词翻译准确率约 75%，需要持续沉淀各行业标准词根；DML 自动生成不能覆盖全部场景和引擎。",{"type":19,"tag":20,"props":233,"children":235},{"id":234},"后来",[236],{"type":25,"value":234},{"type":19,"tag":27,"props":238,"children":239},{},[240,242,249,251,257],{"type":25,"value":241},"Genesis 数据标准模块里的词根管理与智能命名生成，延续的是同一套思路，详见 ",{"type":19,"tag":243,"props":244,"children":246},"a",{"href":245},"\u002Fblog\u002F2026-08-22-genesis-onedata-standards\u002F",[247],{"type":25,"value":248},"数仓命名靠词根管：Genesis 的数据标准与 OneData 建模",{"type":25,"value":250},"。原先的在线演示服务已经下线，接口的调用方式记录在 ",{"type":19,"tag":243,"props":252,"children":254},{"href":253},"\u002Fblog\u002F2024-05-08-data-modeling-api\u002F",[255],{"type":25,"value":256},"数据建模 API 功能说明",{"type":25,"value":258},"。",{"title":7,"searchDepth":260,"depth":260,"links":261},3,[262,264,265,266],{"id":22,"depth":263,"text":22},2,{"id":34,"depth":263,"text":34},{"id":209,"depth":263,"text":209},{"id":234,"depth":263,"text":234},"markdown","content:projects:data-modeling-tool.md","content","projects\u002Fdata-modeling-tool.md","projects\u002Fdata-modeling-tool","md",1796523532776]