Comments (2)
Hi Hagar,
The output of the service return all matching documents. So if you want to match between a collection of 2 documents, this is the service that is most appropriate
The result matches every record in the source (documents
) with the multiple target (matchWith
). This is a good test to run locally. And to visualize the result, you can add this print statement at the end
result.entrySet().forEach(entry -> {
System.out.println("Key: " + entry.getKey().getKey());
entry.getValue().forEach(match -> {
System.out.println("Data: " + match.getData() + " Matched With: " + match.getMatchedWith() + " Score: " + match.getScore().getResult());
});
});
So the total score of a document rely on the matching elements. At an Element
level there is no key, but all elements of the same ElementType
undergo match comparisons.
This comparison depends on how many tokens matched and this is represented by matchingCount
For example when matching these 2 element addresses 123 new st.
and 123 new Street
the tokens are broken down to each word, and we can see 2 tokens 123
and new
match.
But this is going into the internals of match algorithm. For most of the cases just using the key
at a Document
and the overall score
in Match
should suffice in finding similarities. If you can elaborate your use case with a few examples, that can help me understand what your are trying to solve.
from fuzzy-matcher.
Hello @manishobhatia,
Thank you for your prompt response.
My current flow is as the test you mentioned. However, I wish to take an extra step due to the business logic requirements.
In addition to displaying the matched rows along with their scores, it is necessary to indicate the degree of similarity for each field compared to the corresponding field in the matched rows.
For instance:
Match:
- Row1: Field 1: value1, Field 2: value2, Field 3: value3
- Row2: Field 1: value4, Field 2: value5, Field 3: value6
Match Score = 60%
Field-wise score:
- Field 1 --> Score (25%)
- Field 2 --> Score (10%)
- Field 3 --> Score (50%)
And thank you for letting me know that the comparison is based on elementType
rather than mapping elements. This will definitely help.
from fuzzy-matcher.
Related Issues (20)
- Matching two strings HOT 4
- comparing two string with different dimension HOT 2
- Language Supported HOT 1
- Fuzzy matching issue : only fetching the exact match HOT 9
- Upgrade to Java 11 HOT 5
- Combine Tokenizers for better results HOT 2
- Phone number assumed to be a US number HOT 3
- Help HOT 1
- Kotlin not support HOT 2
- Name List matcher HOT 2
- Is there any way to create my own matchers? HOT 1
- SLF4J Failed to load HOT 3
- New Element Type for product names HOT 2
- upgrade commons-text to a non-vulnerable version HOT 2
- Information on Library usage HOT 5
- Though there is matching result but matcher is not returning. HOT 3
- Questions HOT 1
- Cross-Language Fuzzy Matching: Arabic Document Matching returns 0 matches HOT 3
- Why Does Matching Fail in These Scenarios?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuzzy-matcher.