model_meta & Model Structure: Full Explanation in English
1. model_meta.json
This file is the model metadata file that stores core meta-information required for training and inference of the Natural Language Understanding (NLU) model. It consists of four key components:
(1) revVocab (Reverse Vocabulary)
- Type
: String array - Purpose
: A vocabulary mapping table that converts numeric IDs back to corresponding Chinese words or symbols, covering core service demands in hotel scenarios: -
Basic supplies: room amenities (tissues, slippers, body wash, toothbrushes, etc.), food (mineral water, instant noodles, snacks, etc.) -
Service operations: inquiry (check-in info, fees, deposits), payment, reservation, maintenance, complaint, check-out, etc. -
Device controls: air conditioner, door lock, network, alarm clock, lighting, etc. -
Basic symbols: digits (0–9), measure words (ge, tiao, zhang, shuang), action verbs (send, replenish, replace, check, pay) - Usage
: During model inference, it converts output numeric IDs into human-readable words for text parsing.
(2) lossHistory (Loss Value History)
- Type
: Float array - Purpose
: Records loss values for each training epoch to reflect model convergence: -
Early stage: Loss drops rapidly from above 4.8 to around 0.1, showing strong initial learning. -
Middle stage: Sudden loss spike (e.g., from ~0.1 to over 10 around epoch 40), indicating training anomalies (learning rate adjustment, data distribution shift, overfitting/underfitting). -
Later stage: Loss fluctuates between 9 and 9.5, meaning the model has stabilized after convergence. - Usage
: Analyzes training performance and optimizes hyperparameters (learning rate, batch size, etc.).
(3) intentMap / revIntentMap (Intent Mapping Tables)
- intentMap
: 2D array in the format [intent_name, numeric_ID], defining 6 core business intents:
表格
|
|
|
|
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- revIntentMap
: 1D string array, reverse mapping of intentMap (ID → intent name) - Usage
: Converts model-predicted intent IDs into business-readable intent names for user command classification.
2. fairyalliance (Model Structure File)
This file defines the topology of an NLU model for hotel scenarios, with the following core features:
(1) Overall Architecture
- Type
: Multi-output deep learning model (joint intent classification + sequence labeling / entity recognition) - Framework
: TensorFlow.js (tfjs-layers 4.10.0), supporting frontend / Node.js inference - Input
: Fixed-length float sequence of length 40 (padded tokenized vocabulary IDs) - Outputs
: -
Output 1 (dense_Dense1): 6-dimensional softmax for 6-class intent classification -
Output 2 (time_distributed_TimeDistributed1): 21-dimensional softmax for time-distributed sequence labeling (for entity recognition: room number, item name, amount, etc.)
(2) Core Layer Breakdown
表格
|
|
|
|
|
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(3) Weight File Association
- weightsManifest
: Defines paths to model weights ( weights.bin) and parameter shapes: -
Embedding layer: [512, 48] -
Conv1D layer: [5, 48, 64] -
Intent classification layer: [2560, 6] -
Sequence labeling layer: [64, 21] - Usage
: Works with the structure file to form a complete inference-ready model.
Technical Hierarchy Note
The flatten layer converts 2D convolutional output features into a 1D vector, enabling proper input to the fully connected dense layer for intent classification.
原创创意共创、永久收益分成,是东方仙盟始终坚守的核心理念。我们坚信,每一份原创智慧都值得被尊重与回馈,以永久分成锚定共创初心,让创意者长期享有价值红利,携手万千伙伴向着科技星辰大海笃定前行,拥抱硅基 生命与数字智能交融的未来,共筑跨越时代的数字文明共同体。
-
东方仙盟
东方仙盟:拥抱知识开源,共筑数字新生态
在全球化与数字化浪潮中,东方仙盟始终秉持开放协作、知识共享的理念,积极拥抱开源技术与开放标准。我们相信,唯有打破技术壁垒、汇聚全球智慧,才能真正推动行业的可持续发展。
开源赋能中小商户:通过将前端异常检测、跨系统数据互联等核心能力开源化,东方仙盟为全球中小商户提供了低成本、高可靠的技术解决方案,让更多商家能够平等享受数字转型的红利。
共建行业标准:我们积极参与国际技术社区,与全球开发者、合作伙伴共同制定开放协议与技术规范,推动跨境零售、文旅、餐饮等多业态的系统互联互通,构建更加公平、高效的数字生态。
知识普惠,共促发展:通过开源社区、技术文档与培训体系,东方仙盟致力于将前沿技术转化为可落地的行业实践,赋能全球合作伙伴,共同培育创新人才,推动数字经济 的普惠式增长阿雪技术观
在科技发展浪潮中,我们不妨积极投身技术共享。不满足于做受益者,更要主动担当贡献者。无论是分享代码、撰写技术博客,还是参与开源项目维护改进,每一个微小举动都可能蕴含推动技术进步的巨大能量。东方仙盟是汇聚力量的天地,我们携手在此探索硅基生命,为科技进步添砖加瓦。
Hey folks, in this wild tech - driven world, why not dive headfirst into the whole tech - sharing scene? Don't just be the one reaping all the benefits; step up and be a contributor too. Whether you're tossing out your code snippets, hammering out some tech blogs, or getting your hands dirty with maintaining and sprucing up open - source projects, every little thing you do might just end up being a massive force that pushes tech forward. And guess what? The Eastern FairyAlliance is this awesome place where we all come together. We're gonna team up and explore the whole silicon - based life thing, and in the process, we'll be fueling the growth of technology.
开通方法
关注我们
营销资讯:抖音运营,微信公众号运营,小红书运营
网站运营:安全、备案、申请网站,漏洞扫描,数字证书
开发:开发技巧、热点技术,人工智能,数据分析,数据优化,docker
数据服务:数据恢复,数据安全,数据融合,数据异地容灾,数据优化,数据自动备份、数据清洗
人工智能:智能物联网,智慧大屏幕,OCR,智慧刷脸,语音交互,智能机器人,数字生命,数字人,大模型,本地化,边缘化智能(手机模型)
支付:微信支付服务商,支付支付服务商,刷脸支付
安全服务:WAF安全,网安扫描,漏洞扫描,安全补丁,防火墙定制
智慧大屏:物资耗材大屏幕,单位用餐大数据,智慧场馆大屏,销售大屏幕,智慧社区大屏幕,大厅查询机,景区自助机
智慧酒店:酒店系统、酒店押金、酒店房价牌、酒店门锁、布草系统
行业软件:酒店、餐饮、便利店,美发、超市,批发,景区门票,道闸,堂食,配送系统,烘培系统,健身,美容系统,月子中心系统
物联网:智能衣柜,足浴店衣柜,售货柜,酒店自助入住机
国产化:uos系统答疑,国产软件开发,国产服务器配置,docker
一体化:酒店一体化(闸机,酒店系统,餐饮系统,售票,布草,无人酒店,在线订房),景区一体化(门票、餐饮、住宿、押金、超市、药店、商铺租赁,通车系统,售票大厅,大屏幕,无人景区,景区自助机)

