首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >实体返回的沃森NLU顺序

实体返回的沃森NLU顺序
EN

Stack Overflow用户
提问于 2017-12-14 03:25:38
回答 1查看 160关注 0票数 1

我使用沃森NLU和一个自定义模型从简历中提取教育实体。

到目前为止,它运行良好,但如果有多个提到的教育,它没有返回的结果有序。

例如,如果简历中包含高中和大学,它将按错误的顺序返回数据,如下所示:

代码语言:javascript
复制
 {
    "type": "GraduationYear",
    "text": "2007",
    "disambiguation": {
        "subtype": [
        "Date"
        ]
    },
    "count": 1
},
{
    "type": "Institution",
    "text": "Rahman Colledge",
    "disambiguation": {
        "subtype": [
        "CollegeUniversity"
        ]
    },
    "count": 1
},
{
    "type": "GraduationYear",
    "text": "2017",
    "disambiguation": {
        "subtype": [
        "Date"
        ]
    },
    "count": 1
},

{
    "type": "Institution",
    "text": "MIS Highschool",
    "disambiguation": {
        "subtype": [
        "School"
        ]
    },
    "count": 1
},
{
    "type": "EducationLevel",
    "text": "Diploma",
    "disambiguation": {
        "subtype": [
        "Degree"
        ]
    },
    "count": 1
},
{
    "type": "EducationLevel",
    "text": "High School Certfication",
    "disambiguation": {
        "subtype": [
        "Degree"
        ]
    },
    "count": 1
}

我如何排序从模型本身发现的结果?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-12-19 18:45:00

在NLU中有一个新的mentions参数,该参数在设置为true时返回文本中实体的位置。然后,可以使用每个实体的开始索引对它们进行排序。请参阅NLU引用

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47805421

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档