wangzhegeek / EGES

388 stars 144 forks source link

产生的上下文为什么每次都要加上0呢? #5

Closed huzuoliang closed 4 years ago

huzuoliang commented 4 years ago
    # brand_list, shop_list, cate_list = side_infos
    session_items = []
    for lst in session_list:
        lst = list(map(int, lst)) + [0]
        session_items.extend(lst)
wangzhegeek commented 4 years ago

就类似于每个句子之间的分隔符,这样确实不是很严谨,你可以尝试更好的方法

wangzhegeek commented 4 years ago

代码已更新,去掉了那部分的逻辑