SNCT.JudgeOfRelevancy.get_word_similarity C# (CSharp) Method

get_word_similarity() private method

private get_word_similarity ( String word1, String word2 ) : double
word1 String
word2 String
return double
        private double get_word_similarity(String word1, String word2)
        { // TODO: make fuzzy!
            HashSet<String> words1 = get_synonyms(word1);
            HashSet<String> words2 = get_synonyms(word2);
            return words1.Intersect(words2).Count() / (words1.Count() + words2.Count());
        }
        public double get_direct_relevance(String text, String query, HashSet<String> query_content_words)