File size: 367 Bytes
8f29dd6
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
# Copyright (c) OpenMMLab. All rights reserved.
def multi_turn_1_map_fn(example):
    messages = example['messages']
    conversation = []
    for msg in messages:
        conversation.append({
            'system': msg['toy_system'],
            'input': msg['toy_input'],
            'output': msg['toy_output']
        })
    return {'conversation': conversation}