Skip to content

Instantly share code, notes, and snippets.

@debuggingfuture
Last active February 24, 2016 02:05
Show Gist options
  • Save debuggingfuture/7bd2f21ae8119fc42bb0 to your computer and use it in GitHub Desktop.
Save debuggingfuture/7bd2f21ae8119fc42bb0 to your computer and use it in GitHub Desktop.
//devise a simple algorithm for scoring similarity between phrases pairs
//sample input
//can assume all are short phrasese (<20 characters)
var input = [
["一二三四","五六七八"],
["分享帳號","帳號管理"]
]
//in this example, it is expected score(input[0]) < score(input[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment