문제

I need some help. I am trying to shorten a full product name from Amazon. For example:

Samsung Galaxy S II Epic Touch 4G Android Phone (Sprint)

Galaxy S II

I want to do this programatically. Any ideas?

도움이 되었습니까?

해결책

@bdares points out what seems to be the easiest way to handle this -- make a big list of all of the product names, then use some sort of text search to find the product name your string contains.

I asked Given a list of search terms, how can I tell which ones my string contains? since I can't think of a good way to do this at the moment.

EDIT: And I got a pretty good answer.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top