"Text similarity"
Twoh
New Altair Community Member
Hello,
In my project i have to analyze similarity between text files and a file which contains list of words.
Does anyone know how to model this? I’ve tried it with 'Cross Distance Operator' but it doesn't work somehow.
Thanks
In my project i have to analyze similarity between text files and a file which contains list of words.
Does anyone know how to model this? I’ve tried it with 'Cross Distance Operator' but it doesn't work somehow.
Thanks
Tagged:
0
Answers
-
Hi, you can do the following:
Read the word list using a Process Documents Operator with an inner Tokenize operator. Then forward the resulting word list to another Process Documents Operator with an inner Tokenize operator that processes all the text files. You can finally connect both outcoming examplesets with the cross distance operator and select cosine similarity, since it is most appropriate for this.
Good Luck!
Greetings,
Sebastian0 -
Many thanks, it works. I now have only 0-values in the ‘distance’-row, even if I process two identical files. Do you have any idea why?0
-
Hi,
if you compare two identical vectors, a distance of zero is something that I would expect...
Greetings,
Sebastian0