!!!

https://www.w3.org/TR/speech-grammar/

{

			"grammar": {
			"head":
			 {
				"gramName": "Test1",
				"version": "1.0",
				"lang": "zh-CN",
				"mode": "voice",
				"scope": "public"
			},

		"ruleid": 
        [
            {"id": "1","name": "select airplane"},
			{"id": "2","name": "select traffic"},
			{"id": "3","name": "select illegal items"},
			{"id": "4","name": "airplane"},
			{"id": "5","name": "company"},
			{"id": "6","name": "vehicle"},
			{"id": "7","name": "items"},
			{"id": "8","name": "extend"}
		],

		"idref": ["1", "2", "3", "4", "5", "6", "7","8"],

		"select airplane": {
			"example": ["查询航班", "航班查询", "查询飞机"],
			"verb": ["查询", "查", "要", "航班", "飞机"],

			"words": 
            [
                {
                    "item": "航班查询",
                    "one-of": ["吧", "啊", "呀"]
                }
            ],

			"idref": ["4", "5"]
		},

		"select traffic": {
			"example": ["查询机场交通", "机场交通查询"],
			"verb": ["查询", "查", "要", "交通"],
			"words": 
            [
                {
                    "item": "机场交通查询",
                    "one-of": ["吧", "啊", "呀", "嗯"]
                }
            ],

			"idref": ["6"]
		},

		"select illegal items": {
			"example": ["违规物品查询", "查询违规物品"],
			"verb": ["查询", "查", "要"],
			"words": 
            [
                {
                    "item": "违规物品查询",
                    "one-of": ["我", "要", "帮", "啊", "呀"]
                }
            ],

			"idref": ["7"]
		},

		"airplane": {
			"example": [],
			"verb": [],

			"words": 
            [
                {
					"item": "6770",
					"one-of": []
				},

				{
					"item": "6887"
				},

				{
					"item": "5006"
				}
			]

		},

		"company": {
			"words": 
            [
                {
					"item": "南方航空公司",
					"one-of": ["吧", "啊", "呀", "的"]
				},

				{
					"item": "厦门国际机场",
					"one-of": ["吧", "啊", "呀", "的"]
				}
			],
			"idref": []
		},

		"vehicle": {
			"words": 
            [
                {
					"item": "地铁",
					"one-of": ["的", "是", "啊"]
				},

				{
					"item": "公交",
					"one-of": ["的", "是", "啊"]
				},
				{
					"item": "大巴",
					"one-of": ["的", "是", "啊"]
				}
			]
		},

		"items": {
			"example": ["酒能不能带上飞机", "毒品能不能带上飞机", "爆炸物能不能带上飞机"],
			"words": 
            [
                {
					"item": "酒",
					"hom": {
						"item": "酒",
						"texts": ["就", "救", "久", "旧","九","9"],
						"count": 1,
						"index": [1]
					},

					"one-of": ["的", "是", "啊"]
				},

				{
					"item": "毒品",
					"one-of": ["的", "是", "啊"]
				},

				{
					"item": "爆炸物",
					"one-of": ["的", "是", "啊"]
				}
			]
		},

		"extend": {
			"gram": 
            {
				"name": "Test2",
				"path": "../conf/Test2.fgram",
				"url": "",
				"idref": ["1"]
			}
		}

	}
}

GramCode

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值