我如何讓獅身人面像識別「汽車」和「汽車」爲類似的詞?獅身人面像和字形
讓我們的形象,我有三個數據庫記錄
Andy likes to drive auto.
Mary don't like to drive car.
Bob is going to buy automobile.
下面是示例查詢,它的結果...
query: car
result: Mary don't like to drive car.
-------------------------------------
query: auto
result: Andy likes to drive auto.
-------------------------------------
query: automobile
Bob is going to buy automobile.
..但我想獅身人面像回...
query: car
result:
Andy likes to drive auto.
Mary don't like to drive car.
Bob is going to buy automobile.
-------------------------------------
query: auto
result:
Andy likes to drive auto.
Mary don't like to drive car.
Bob is going to buy automobile.
-------------------------------------
query: automobile
result:
Andy likes to drive auto.
Mary don't like to drive car.
Bob is going to buy automobile.
我知道獅身人面像有stowords,但是我應該把什麼東西放進stopwords字典來讓獅身人面像這樣思考?
謝謝。
小觀察...我想你的意思是把'瑪麗不喜歡開車'。作爲「汽車」查詢下的第一個結果。 – ServAce85