intuit / fuzzy-matcher

A Java library to determine probability of objects being similar.
Apache License 2.0
226 stars 69 forks source link

Find the most similar array #38

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi,

Say I have a list of sentences Collection<String> sentences and I want to simply find the most similar among these to another sentence. Is this possible ?

I read the first README file and example there only ingests one input (documents)

Thanks !

manishobhatia commented 3 years ago

Hi ,

Yes this is possible. You can consider each sentence as document, which can have just 1 element of type TEXT and feed it as value .

Each documented just needs a unique key as identity. You can use line number for this , other than that there is nothing special about the Document type

Hope this helps

Thanks

On Sep 30, 2020, at 11:37 PM, Aben notifications@github.com wrote:

 Hi,

Say I have a list of sentences Collection sentences and I want to simply find the most similar among these to another sentence. Is this possible ?

I read the first README file and example there only ingests one input (documents)

Thanks !

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

manishobhatia commented 3 years ago

closing the issue. Feel free to open a new one, if you things the issue was not resolved , or would like to see some enhancement to the library

ghost commented 3 years ago

frankly I took a different path thanks for the answer