如果我想写
FOR each label, entities IN custom_entities:
FOR each ent IN entities:
span = create_span(doc, ent[1], ent[2], label)
doc.ents = combine_entities(doc.ents, [span])
这部分伪代码使用算法2e,我怎么能写出那样的东西呢?
如果我想写
FOR each label, entities IN custom_entities:
FOR each ent IN entities:
span = create_span(doc, ent[1], ent[2], label)
doc.ents = combine_entities(doc.ents, [span])
这部分伪代码使用算法2e,我怎么能写出那样的东西呢?