-
Notifications
You must be signed in to change notification settings - Fork 0
Home
SoluMilken edited this page Dec 22, 2018
·
2 revisions
ref: https://hackmd.io/DWNGXRTJS9eQQ35lzJutwQ?both
- label = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 2, 2, 3, 3, 3, 0, 0, 0]
- utt = "><><我想要喝200.5元的@@珍奶10杯!!!"
- label = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 2, 2, 3, 3, 3, 0, 0, 0]
- utt = "><><我想要喝200.5元的@@珍奶10杯!!!"
- forward_edits = [(0, 4, ''), (8, 13, '3float1'), (15, 17, ''), (19, 21, '2int')]
- reverse_edits = [(0, 0, '><><'), (4, 13, '200.5'), (17, 23, '10'), (24, 24, '!!!')]
- label = [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 2, 2, 3, 3, 3, 3, 3, 3, 3]
- utt = "我想要喝_3float1_元的珍奶_2int_杯"
- spans = [(0, 1), (1, 3), (3, 4), (4, 13), (13, 14), (14, 15), (15, 17), (17, 23), (23, 24)]
- reverse: 好像不用
- label = [0, 0, 0, 1, 1, 0, 2, 3, 3]
- utt = ['我', '想要'. '喝', '3float1', '元', '的', '珍奶', '2int', 杯']
- forward_edits = [(0, 0, ['sos']), (9, 9, ['eos'])]
- reverse_edits = [(0, 1, []), (10, 11, [])]
- label = [0, 0, 0, 0, 1, 1, 0, 2, 3, 3, 0]
- utt = ['sos', '我', '想要'. '喝', '3float1', '元', '的', '珍奶', '2int', 杯', 'eos']
- forward_edits = [(11, 11 , ['pad', 'pad'])]
- reverse_edits = [(11, 13, [])]
- label = [0, 0, 0, 0, 1, 1, 0, 2, 3, 3, 0]
- utt = ['sos', '我', '想要'. '喝', '3float1', '元', '的', '珍奶', '2int', 杯', 'eos']
- forward_edits = [(0, 1, [0]), (1, 2, [1]), (2, 3, [2]), (3, 4, [3]), (4, 5, [4]), ...]
- reverse_edits = [(0, 1, ['sos']), (1, 2, ['我']), (2, 3, ['想要']), ...]
- label = [0, 0, 0, 0, 1, 1, 0, 2, 3, 3, 0, 0, 0]
- utt = ['sos', '我', '想要', '喝', '3float1', '元', '的', '珍奶', '2int', '杯', 'eos', 'pad', 'pad']
- prediction = [2, 1, 0, 3, 0, 1, 2, 0, 1, 0, 3, 1, 2]
=========================================
- prediction = [2, 1, 0, 3, 0, 1, 2, 0, 1, 0, 3, 1, 2]
- transformed_utt = ['sos', '我', '想要', '喝', '3float1', '元', '的', '珍奶', '2int', '杯', 'eos', 'pad', 'pad']
- forward_edits = [(11, 11 , ['pad', 'pad'])]
- reverse_edits = [(11, 13, [])]
- propagated_prediction = [2, 1, 0, 3, 0, 1, 2, 0, 1, 0, 3]
- forward_edits = [(0, 0, ['sos']), (9, 9, ['eos'])]
- reverse_edits = [(0, 1, []), (10, 11, [])]
- propagated_prediction = [1, 0, 3, 0, 1, 2, 0, 1, 0]
- spans = [(0, 1), (1, 3), (3, 4), (4, 13), (13, 14), (14, 15), (15, 17), (17, 23), (23, 24)]
- propagated_prediction = [1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 1, 1, 1, 1, 1, 1, 0]
- forward_edits = [(0, 4, ''), (8, 13, '3float1'), (15, 17, ''), (19, 21, '2int')]
- reverse_edits = [(0, 0, '><><'), (4, 13, '200.5'), (17, 23, '10'), (24, 24, '!!!')]
- propagated_prediction = [0, 0, 0, 0, 1, 0, 0, 3, 0, 0, 0, 0, 0, 1, 2, 0, 0, 1, 1, 0, 0, 0, 0]
- default label 0
- reduce func
- raw_utt = "><><我想要喝200.5元的@@珍奶10杯!!!"
- [0, 0, 0, 0, 1, 0, 0, 3, 0, 0, 0, 0, 0, 1, 2, 0, 0, 1, 1, 0, 0, 0, 0]
- h_output = [我 -> 1, 喝 -> 3, 元 -> 1, 的 -> 2, 10 -> 1]