Ibm cloud 返回的实体的沃森NLU订单

Ibm cloud 返回的实体的沃森NLU订单,ibm-cloud,watson,watson-nlu,watson-knowledge-studio,Ibm Cloud,Watson,Watson Nlu,Watson Knowledge Studio,我正在使用watson NLU和自定义模型从简历中提取教育实体 到目前为止,它还可以工作,但是如果提到了不止一种教育,它不会按顺序返回结果 例如,如果一份简历包含高中和大学,它会以错误的顺序返回数据,如下所示: { "type": "GraduationYear", "text": "2007", "disambiguation": { "subtype": [ "Date" ] }, "count": 1

我正在使用watson NLU和自定义模型从简历中提取教育实体

到目前为止,它还可以工作,但是如果提到了不止一种教育,它不会按顺序返回结果

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

 {
    "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
}
如何对模型本身的结果进行排序

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