我的数据库是
sport_type:table
id type
12 Cricket
人:桌子
id name details
1 person1 he is good in cricket
2 person2 he is a player
我正在寻找识别已存储在我的数据库示例中的给定文本中的人的方法:
我的文字为
Person1在板球方面非常出色。 Person2是Person1的朋友
所以当我提交sql查询时,我应该得到结果
Person1 在 Cricket 中非常出色。 Person2 是 Person1
的朋友
代码应该能够识别已经存储在我的数据库中的项目或实体。
我应该如何在python和mysql的帮助下实现这一目标?