我想在一个长字符串中查找最频繁出现的近似匹配,条件是该词也来自所提供的列表。在
示例:
# provided list
>> jobskill = ["scrum", "customer experience improvement", "python"]
# long string
>> jobtext = ["We are looking for Graduates in our Customer Experience department in Swindon, you will be responsible for improving customer experience and will also be working with the digital team. Send in your application by 31st December 2018",
"If you are ScrumMaster at the top of your game with ability to communicate inspire and take people with you then there could not be a better time, we are the pioneer in digital relationship banking, and we are currently lacking talent in our Scrum team, if you are passionate about Scrum, apply to our Scrum team, knowledge with python is a plus!"]
# write a function that returns most frequent approximate match
>> mostfrequent(input = jobtext, lookup = jobskill)
# desired_output: {"customer experience improvement, "scrum"}
感谢任何形式的帮助,谢谢!在
模糊使用
相关问题 更多 >
编程相关推荐