Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

相似度计算的训练语料存在问题 #11

Closed
Jothangan opened this issue Aug 2, 2019 · 1 comment
Closed

相似度计算的训练语料存在问题 #11

Jothangan opened this issue Aug 2, 2019 · 1 comment

Comments

@Jothangan
Copy link

直接使用问句和属性匹配学习后的结果变成了问某个实体对应的任意属性最后返回的都是同一个结果,如:
question: 姚明的国籍
['B-LOC', 'I-LOC', 'O', 'O', 'O']
['姚明']
answer: 2002年 / 第1轮 / 第1顺位
question: 姚明的个人资料
['B-LOC', 'I-LOC', 'O', 'O', 'O', 'O', 'O']
['姚明']
answer: 2002年 / 第1轮 / 第1顺位

@Jothangan
Copy link
Author

发现问题是任意问句和某个属性计算相似度得到的结果都是一致的,如:
question: 安德烈的身高
['B-LOC', 'I-LOC', 'I-LOC', 'O', 'O', 'O']
['安德烈']
[['安德烈·安德烈', '别名', '安德烈·安德烈'], ['安德烈·安德烈', '出生地', '葡萄牙'], ['安德烈·安德烈', '运动项目', '足球'], ['安德烈·安德烈', '国籍', '葡萄牙'], ['安德烈·安德烈', '中文名', '安德烈·安德烈'], ['安德烈·米勒(安德烈·米勒)', '外文名', 'Andre Miller'], ['安德烈·米勒(安德烈·米勒)', '毕业院校', '犹他大学'], ['安德烈·米勒(安德烈·米勒)', '中文名', '安德烈·米勒'], ['安德烈·米勒(安德烈·米勒)', '主要奖项', 'NBA最佳新秀阵容(2000)'], ['安德烈·米勒(安德烈·米勒)', '出生地', '美国加利福尼亚州洛杉矶']]
[2.5162326e-05, 1.7349568e-05, 2.2336062e-05, 6.008276e-05, 1.7204859e-05, 2.2679447e-05, 1.1779441e-05, 1.7204859e-05, 1.6766051e-05, 1.7349568e-05]
6.008276e-05
answer: 葡萄牙
question: 安德烈的体重
['B-LOC', 'I-LOC', 'I-LOC', 'O', 'O', 'O']
['安德烈']
[['安德烈·安德烈', '别名', '安德烈·安德烈'], ['安德烈·安德烈', '出生地', '葡萄牙'], ['安德烈·安德烈', '运动项目', '足球'], ['安德烈·安德烈', '国籍', '葡萄牙'], ['安德烈·安德烈', '中文名', '安德烈·安德烈'], ['安德烈·米勒(安德烈·米勒)', '外文名', 'Andre Miller'], ['安德烈·米勒(安德烈·米勒)', '毕业院校', '犹他大学'], ['安德烈·米勒(安德烈·米勒)', '中文名', '安德烈·米勒'], ['安德烈·米勒(安德烈·米勒)', '主要奖项', 'NBA最佳新秀阵容(2000)'], ['安德烈·米勒(安德烈·米勒)', '出生地', '美国加利福尼亚州洛杉矶']]
[2.5162326e-05, 1.7349568e-05, 2.2336062e-05, 6.008276e-05, 1.7204859e-05, 2.2679447e-05, 1.1779441e-05, 1.7204859e-05, 1.6766051e-05, 1.7349568e-05]
6.008276e-05
answer: 葡萄牙

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant