我想将NER引擎的输出插入到数据框中,如下所示
<表类>
id
tbody><<tr>1 2 表类>
我可能已经弄明白了。我使用了一个空列表来计算条目的数量,下面是代码
dfner.loc[len(listname)-1, 'match'] = ent.label_
dfner.loc[len(listname)-1, 'id'] = str(id)