Python functions for Efficient duplicate detection
Project description
PyDuplicate
PyDuplicate is a Python package that provides functionality for detecting and identifying duplicates within a given dataset. It offers a bunch of functions to search for duplicate elements, making it easy to identify and handle duplicate entries efficiently.
- Source code: https://github.com/JeanBertinR/PyDuplicate
- Bug reports: https://github.com/JeanBertinR/PyDuplicate/issues
- Report a security vulnerability: https://tidelift.com/docs/security
Requirements
- Python 3.x
- Levenshtein
Installation
You can install the PyDuplicate package using pip. Here's the installation command from your terminal:
pip install PyDuplicate
Make sure you have Python and pip installed on your system before running this command. After the installation, you can import the package in your Python code using the following line:
import PyDuplicate
That's all it takes to install the package and import it into your project.
Usage
Importing the SimilarityScorer module
SimilarityScorer has been designed to calculate a similarity score between two sets of character strings.
To begin, import the package by installing it using pip and importing the SimilarityScorer class in your Python script or interactive session:
from PyDuplicate import SimilarityScorer
Instantiating the SimilarityScorer
Create an instance of the SimilarityScorer class:
scorer = SimilarityScorer()
Calculating the Similarity Score
Use the similarity_score method of the SimilarityScorer instance to calculate the similarity score between two sets of strings:
score = scorer.similarity_score(str_tuple_1, str_tuple_2)
Importance and Applications
The String Similarity Scorer function has several applications across various domains, including:
Text Matching: It can be used for comparing and matching textual data, such as finding duplicate entries in a database or identifying similar documents.
Data Cleansing: It aids in data preprocessing tasks by detecting and handling similar or duplicate records, improving data quality.
Natural Language Processing (NLP): The similarity score can be used as a feature in NLP tasks like text classification, information retrieval, and recommendation systems.
Fuzzy String Matching: The function incorporates fuzzy matching techniques to handle slight variations and inconsistencies in the input strings.
Contributing
Contributions are welcome! If you have any suggestions or find any issues, please open an issue or submit a pull request.
License
This project is licensed under the GPL v3 License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PyDuplicate-0.0.2.tar.gz.
File metadata
- Download URL: PyDuplicate-0.0.2.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6951d23be96f44aafc7ece109077b812c786ef0578954b35987523d39295fe2a
|
|
| MD5 |
9ef38cc39dda6408491718f75fd61a8d
|
|
| BLAKE2b-256 |
5cb02eef79a501dc9e5e92d7d872d4151d99c66d1ae1643384eeb2034aa7fbff
|
File details
Details for the file PyDuplicate-0.0.2-py3-none-any.whl.
File metadata
- Download URL: PyDuplicate-0.0.2-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e454ad135b3613281d6dcbe7b42428df4cd104b448acff7a06d65ea846d1da95
|
|
| MD5 |
62c8b3eab7f47befd17712866498e4af
|
|
| BLAKE2b-256 |
8e984d971fca312eb9c2beef3727e8f2ff43dd8cf7d87fd356f6bb5c9065ef0e
|