Last active
February 24, 2016 02:05
-
-
Save debuggingfuture/7bd2f21ae8119fc42bb0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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