例如:
string1 =
"Sherlock Holmes is a fictional private detective created by British author Sir Arthur Conan Doyle. Known as a consulting detective in the stories, Holmes is known for his proficiency with observation."
string2 =
"fictional detective created by British author Conan Doyle. Also, known as a consulting detective"
我想从string2
中提取与string1
的近似匹配。
结果应该是:
"fictional private detective created by British author Sir Arthur Conan Doyle. Known as a consulting detective"
我尝试过的事情: