How to perform phonetic matching?
MACHINE LEARNING RECIPES DATA CLEANING PYTHON DATA MUNGING PANDAS CHEATSHEET     ALL TAGS

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)
R01063

Step 3 - Check the Metaphone with example

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

Step 4 - Check the nysiis with example

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

Step 5 - Check the demetaphone with example

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

Relevant Projects

Machine Learning project for Retail Price Optimization
In this machine learning pricing project, we implement a retail price optimization algorithm using regression trees. This is one of the first steps to building a dynamic pricing model.

Customer Market Basket Analysis using Apriori and Fpgrowth algorithms
In this data science project, you will learn how to perform market basket analysis with the application of Apriori and FP growth algorithms based on the concept of association rule learning.

Credit Card Fraud Detection as a Classification Problem
In this data science project, we will predict the credit card fraud in the transactional dataset using some of the predictive models.

Resume parsing with Machine learning - NLP with Python OCR and Spacy
In this machine learning resume parser example we use the popular Spacy NLP python library for OCR and text classification.

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.

Image Segmentation using Mask R-CNN with Tensorflow
In this Deep Learning Project on Image Segmentation Python, you will learn how to implement the Mask R-CNN model for early fire detection.

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.

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.

Predict Churn for a Telecom company using Logistic Regression
Machine Learning Project in R- Predict the customer churn of telecom sector and find out the key drivers that lead to churn. Learn how the logistic regression model using R can be used to identify the customer churn in telecom dataset.

Machine Learning or Predictive Models in IoT - Energy Prediction Use Case
In this machine learning and IoT project, we are going to test out the experimental data using various predictive models and train the models and break the energy usage.