add get_similarity function
Merge branch '0-1-stable' of github.com:nanapi/taki into 0-1-stable