【发布时间】:2019-03-05 16:42:39
【问题描述】:
我是使用 spacy 的新手。我想从句子中提取文本值
training_sentence="I want to add a text field having name as new data"
OR
training_sentence=" add a field and label it as advance data"
所以从上面这句话中,我想提取“新数据”和“提前数据”
目前,我可以使用自定义 NER 提取“add”、“field”和“label”等实体。
但我无法提取文本值,因为这些值可以是任何值,而且我不确定如何在 spacy 中使用自定义 NER 来提取它。
我在 spacy 文档中看到了 实体关系 的代码 sn-p here 但不知道根据我的用例来实现它。
我无法分享代码。请帮忙解决这个问题
【问题讨论】:
标签: python nlp spacy information-extraction named-entity-recognition