Closed 2like closed 6 years ago
@2like
Besides, another flag self.tagScheme controls the exporting format, the exported ".anns" will use the BMES format if this flag is set to "BMES", otherwise the exported file is formatted as "BIO".
你把YEDDA_Annotator.py里面的self.tagScheme设为BIO,.anns文件就变成BIO格式啦
多谢jinangela帮忙回复。
你好,我在更改self.tagScheme为BIO之后进行标注,发现格式是 美 B-LOC 国 B-LOC 的 O 华 B-PER 莱 B-PER 士 B-PER 这种形式的,请问如何能够自动标注为 B-LOC E-LOC O B-PER I-PER E-PER
@papioyyx 你这个导出的格式不太对,这也不是BIO的格式。下面这种才是BIO格式。 我有个脚本可以转换https://github.com/jiesutd/NCRFpp/blob/master/utils/tagSchemeConverter.py
美 B-LOC 国 I-LOC 的 O 华 B-PER 莱 I-PER 士 I-PER
谢谢!解决了!么么!!
@papioyyx 其实你导出时可以直接设置 self.tagScheme=“BMES”
就行了。
Another flag self.tagScheme controls the exporting format, the exported ".anns" will use the BMES format if this flag is set to "BMES", otherwise the exported file is formatted as "BIO".
@jiesutd ,谢谢,是我操作上的问题!
如何转换成下面的格式?谢谢! B-TIME I-TIME O O B-ORG I-ORG O O O O O O O O O O O O O O O O O O O O O O O O O O O