Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python implementation? #10155

Open
brawer opened this issue Nov 18, 2024 · 2 comments
Open

Python implementation? #10155

brawer opened this issue Nov 18, 2024 · 2 comments
Labels
question Not Actionable - just a question about something

Comments

@brawer
Copy link
Contributor

brawer commented Nov 18, 2024

Do you know if there’s a Python library that implements the NSI matching logic? Given a GeoJSON object with OSM tags in properties, that library would return the NSI-suggested changes. Does this already exist?

The Osmose codebase implements parts of NSI but afaik there’s more to the matching logic.

@bhousel bhousel added the question Not Actionable - just a question about something label Nov 18, 2024
@LaoshuBaby
Copy link
Collaborator

LaoshuBaby commented Nov 21, 2024

I want to wrote a such package years ago but abandoned……I guess I'll pick up this later^

At that time I just want to select all brand+operator in one selected country such as Japan or China


Edit: It's actually because I'm not familiar with js. I even thought about rewriting the part generated by dist in python, but that's not necessary.

@202301060102
Copy link

According to your request, with regard to the Python library that implements NSI (which may refer to fuzzy matching logic), the Python library of NSI matching logic is not directly mentioned in the search results. However, you can see from the search results that there are some Python libraries that can be used to implement logical matching-related functions such as fuzzy matching or logical regression. Here are some related libraries:
Scikit-learn: this is a widely used machine learning library that provides a variety of classification, regression and clustering algorithms, including logical regression. Although it is not specifically used for NSI matching logic, logical regression algorithms can be used for binary problems, which may be related to what you call NSI matching logic.
Fuzzywuzzy: this is a Python library that calculates the difference between two sequences and can be used for fuzzy matching. It is not mentioned directly from search results, but it is a commonly used fuzzy matching library.
Gensim: this library provides tools for topic modeling and document similarity analysis, including TF-IDF models and similarity indexes, which can be used for fuzzy matching.
If you need to implement specific NSI matching logic, you may need to combine the capabilities of these libraries to build your solution. If you have more specific NSI matching logic requirements, you can provide more details so that I can provide more precise advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Not Actionable - just a question about something
Projects
None yet
Development

No branches or pull requests

4 participants