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 cookies

then want show (one string each class):

the quick brownish fox jumps on lazy dog dwarf jocks vex lymph123 i love cookies

i 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

Popular posts from this blog

javascript - I need to update the text of a paragraph by inline edit -

javascript - THREE.js reposition vertices for RingGeometry -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -