The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"how to calculate the distance between two text documents?"
Hi,
Suppose here are two text documents, d1 and d2. I could build two vectors and read them by Iterator<Example>. Then, how to calculate the distance or similarity between them? For example, the cosine distance. Is there any operator or function provided by RM?
Thank you very much.
Sincerely yours,
gfyang
Suppose here are two text documents, d1 and d2. I could build two vectors and read them by Iterator<Example>. Then, how to calculate the distance or similarity between them? For example, the cosine distance. Is there any operator or function provided by RM?
Thank you very much.
Sincerely yours,
gfyang
Tagged:
0
Answers
yes. Please look into com.rapidminer.tools.math.similarity.DistanceMeasure
Cheers,
Simon
Thanks a lot for the reply. However, it is still not clear enough for me. Would you please give some Java codes?
I tried the following, but failed: It reported DistanceMeasure could not be instantiated?
Thank you.
Sincerely yours,
gfyang
distance Measure is abstract. You can only instantiate its subclasses.
Also, if you are using a distance measure at an operator, try installing a DistanceMeasureHelper.
Cheers,
Simon
I see. The subclasses work well. Thank you.
Sincerely yours,
gfyang