我有一个数据集,在那里我标记了名词短语。如何找到这些标签并从标签中提取数据
در
همین
حال
<coref coref_coref_class="set_0" coref_mentiontype="ne" markable_scheme="coref" coref_coreftype="ident">
نجیب
الله
خواجه
عمری
</coref>
<coref coref_coref_class="set_0" coref_mentiontype="np" markable_scheme="coref" coref_coreftype="ident">
سرپرست
وزارت
تحصیلات
عالی
افغانستان
</coref>
گفت
که
def ex_feature(text):
for w in text:
if w.startswith("<coref") and w.endswith("</coref>"):
print(w)
怎么样
相关问题 更多 >
编程相关推荐