def left_context(token_list, token, context_size, idx):
    left_window = []
    if idx <= 0:
        #return ['_START_' for i in range(context_size)]
        return ['<s>' for i in range(context_size)]
    assert(token_list[idx] == token)
    for i in range(idx-context_size, idx):
        if i < 0:
            #left_window.append('_START_')
            left_window.append('<s>')
        else:
            left_window.append(token_list[i])
    return left_window
dataset/ETHPy150Open qe-team/marmot/marmot/features/word2vec_feature_extractor.py/left_context/original