I have texts for a bunch of objects. From each text, I removed the stop words, and took each word as an attribute of the object. I then gave each word a rating based on sentiment analysis, so that the more positive the sentiment is the higher rating they receive.
I now want to compare the objects, using Euclidean Distance. A problem is that the length for the texts vary a lot, from a few sentences to a large amount. So, when I compare an object to a set of them, the ones that I think that should be closer end up further away, because they have way more data, so their ratings are way larger and the distances are too.
Is there a way to standardize the data among objects in the same set, considering objects with few data and objects with large amounts of it?