java - Is there apache or other utility to get the ngrams ( character) frequency that I can use for cosinesimilarity -


i need cosine similarity of 2 strings. using lucene apis ngrams ( ngramtokenizer , chartermattribute).and create frequency hashmap. use cosinesimilarity of apache-commons-text.( not active not keen on using pkg)

i saw link on stackoverflow shows how cosinesimilarity using lucene. how use lucene

just wondering if best way or there other util can use.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -