machine learning - String clustering (using trigrams?) -
machine learning - String clustering (using trigrams?) -
i have list of strings, want classify groups. want show on string each groups.
say list looks this:
the quick brownish fox jumps on lazy dog the quick brownish fox jumps on lazy dog!!!! the brownish fox jumps on lazy dog zing, dwarf jocks vex lymph dwarf jocks vex lymph123 i love cookiesthen want show (one string each class):
the quick brownish fox jumps on lazy dog dwarf jocks vex lymph123 i love cookiesi know trigrams easy , useful solution classifying strings "strings similar" , "strings different". i'm pretty sure can used dividing list of strings classes, i'm not sure how.
can here help me, or should utilize different?
i much prefer method simple , maintainable on high accuracy.
you can utilize clustering technique , select 1 representant each cluster. 1 of simpliest approaches utilize k-medoids on space of n-grams of texts, , print out cluster's centroids (as k-medoids requires centroids parts of training set)
machine-learning cluster-analysis trigram
Comments
Post a Comment