How to perform phonetic matching?

How to perform phonetic matching?

How to perform phonetic matching?

This recipe helps you perform phonetic matching


Recipe Objective

How to perform phonetic matching?

Phonetic matching is a module that computes the phonetic key of a string by using different algorithms which are as follows:

Soundex algorithm is used to create the phonetic key of the source string.

nysiis algorithm use the New York State Identification and Intelligence System to create the phonetic key of the source string.

metaphone algorithm used to create the phonetic key of the source string based on "Lawrence Philips Metaphone Algorithm".

demetaphone algorithm is use the double metaphone algorithm to create the phonetic key of the source string based on "Lawrence Philips Metaphone Algorithm"

Step 1 - Import the necessary libraries

import phonetics

Step 2 - Check the Soundex with example

soundex = phonetics.soundex('Rupert') print(soundex)

Step 3 - Check the Metaphone with example

metaphone = phonetics.metaphone('discrimination') print(metaphone)

Step 4 - Check the nysiis with example

nysiis = phonetics.nysiis('Catherine') print(nysiis)

Step 5 - Check the demetaphone with example

demetaphone = phonetics.dmetaphone('My string') print(demetaphone)
('MSTRNK', '')

Relevant Projects

PySpark Tutorial - Learn to use Apache Spark with Python
PySpark Project-Get a handle on using Python with Spark through this hands-on data processing spark python tutorial.

Predict Macro Economic Trends using Kaggle Financial Dataset
In this machine learning project, you will uncover the predictive value in an uncertain world by using various artificial intelligence, machine learning, advanced regression and feature transformation techniques.

Data Science Project on Wine Quality Prediction in R
In this R data science project, we will explore wine dataset to assess red wine quality. The objective of this data science project is to explore which chemical properties will influence the quality of red wines.

Build a Collaborative Filtering Recommender System in Python
Use the Amazon Reviews/Ratings dataset of 2 Million records to build a recommender system using memory-based collaborative filtering in Python.

Ecommerce product reviews - Pairwise ranking and sentiment analysis
This project analyzes a dataset containing ecommerce product reviews. The goal is to use machine learning models to perform sentiment analysis on product reviews and rank them based on relevance. Reviews play a key role in product recommendation systems.

Identifying Product Bundles from Sales Data Using R Language
In this data science project in R, we are going to talk about subjective segmentation which is a clustering technique to find out product bundles in sales data.

Natural language processing Chatbot application using NLTK for text classification
In this NLP AI application, we build the core conversational engine for a chatbot. We use the popular NLTK text classification library to achieve this.

Predict Census Income using Deep Learning Models
In this project, we are going to work on Deep Learning using H2O to predict Census income.

Loan Eligibility Prediction using Gradient Boosting Classifier
This data science in python project predicts if a loan should be given to an applicant or not. We predict if the customer is eligible for loan based on several factors like credit score and past history.

Forecast Inventory demand using historical sales data in R
In this machine learning project, you will develop a machine learning model to accurately forecast inventory demand based on historical sales data.