File size: 357 Bytes
346d87a
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
def update_chunk(chunk, boundary_type=None, pause_duration=None, sentiment_score=None):
    if boundary_type is not None:
        chunk['boundary_type'] = boundary_type
    if pause_duration is not None:
        chunk['pause_duration'] = pause_duration
    if sentiment_score is not None:
        chunk['sentiment_score'] = sentiment_score
    return chunk