IBM Watson Knowledge Studio - Entities with Role attribute and extracting it from NLU api

时光怂恿深爱的人放手 提交于 2019-12-08 04:40:46

问题


I have created a custom Entity Type system using Watson Knowledge Studio following these guidelines: https://www.ibm.com/watson/developercloud/doc/wks/typesystem.html

For each entity type, the annotator can add attributes to a mention, e.g. role, subtype, class, type, etc.

I am specifically using the "role" attribute, to annotate a mention in different contexts. For example, here is a subset of my entity type system:

Entities - AREA, SYMPTOM, RESOLUTION, CUSTOMER, FAULT, COMPLAINT

Thus, for a mention annotated as AREA, I assign the role CUSTOMER, FAULT or COMPLAINT, depending on the context of the mention.

When the model is sufficiently trained, I would like to use Natural Language Understanding to extract entity types (https://www.ibm.com/watson/developercloud/natural-language-understanding/api/v1/)

The problem is the API does not expose any of the entity attributes, e.g. role, class, type, etc.

My question is therefore, how does one extract the entity attributes when you've trained your model and wish to extract entities and relations from an unseen text? What is the point of role, class and mention type if NLU cannot extract it (unless you can, but I've missed it somehow)?


回答1:


Currently, as you mentioned, entity attributes cannot be extracted in NLU and the only way to extract entity attributes from an unseen text would be to run ML annotator as pre-annotator within WKS. We are investigating to enhance this in future.



来源:https://stackoverflow.com/questions/44796501/ibm-watson-knowledge-studio-entities-with-role-attribute-and-extracting-it-fro

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!