I have large set of data records looking like this:
"text", "category"
I extract n-grams from text (2-, 3- and 4-grams) and store count of each n-gram per category, like so:
"ngram1", "category1", 1000
"ngram1", "category2", 20
"ngram1", "category3", 15
"ngram2", "category1", 25
"ngram2", "category2", 550
"ngram2", "category3", 600
Is there a clustering or classification algorithm that could help with finding groups within categories, based on counts of same n-grams within categories?
In the above example that algorithm should be able to show that "category2" and "category3" are part of the same group.