我想识别句子中的不同查询。
Like -Who is Bill Gates and where he was born?
或Who is Bill Gates, where he was born?
包含两个查询
- 比尔盖茨是谁?
- 比尔盖茨出生的地方
我从事共指解析,所以我可以确定he
指向Bill Gates
如此解析的句子是“谁是比尔·盖茨,比尔·盖茨出生的地方”
同样地
MGandhi is good guys, Where he was born?
single query
who is MGandhi and where was he born?
2 queries
who is MGandhi, where he was born and died?
3 quries
India won world cup against Australia, when?
1 query (when India won WC against Auz)
我可以执行共指解析(识别并转换he
为Gandhi
),但不知道如何区分其中的查询。
这个怎么做?
我检查了各种句子解析器,但由于这是纯 nlp 的东西,句子解析器无法识别它。
我试图找到像“词义消歧”这样的“句子消歧”,但没有这样的东西。
任何帮助或建议都将是非常可观的。