TypeError Traceback (most recent call last)
/tmp/ipykernel_33/3809147022.py in
6 di['id'] = f'{row["id"]}_{entity}'
7 di['text'] = f'实体: {entity} [SEP] ' + row['content']
----> 8 di['label'] = row['entity'][entity]
9 train_data.append(di)
10
TypeError: list indices must be integers or slices, not str