Programmatically extract keywords from domain names

前端 未结 7 1231
余生分开走
余生分开走 2021-02-01 11:32

Let\'s say I have a list of domain names that I would like to analyze. Unless the domain name is hyphenated, I don\'t see a particularly easy way to \"extract\" the keywords use

7条回答
  •  盖世英雄少女心
    2021-02-01 11:33

    If you have a list of valid words, you can loop through your domain string, and try to cut off a valid word each time with a backtracking algorithm. If you managed to use up all words, you are finished. Be aware that the time-complexity of this is not optimal :)

提交回复
热议问题