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

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.

Zillow’s Home Value Prediction (Zestimate)
Data Science Project in R -Build a machine learning algorithm to predict the future sale prices of homes.

Customer Churn Prediction Analysis using Ensemble Techniques
In this machine learning churn project, we implement a churn prediction model in python using ensemble techniques.

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.

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.

Predict Credit Default | Give Me Some Credit Kaggle
In this data science project, you will predict borrowers chance of defaulting on credit loans by building a credit score prediction model.

Choosing the right Time Series Forecasting Methods
There are different time series forecasting methods to forecast stock price, demand etc. In this machine learning project, you will learn to determine which forecasting method to be used when and how to apply with time series forecasting example.

Ensemble Machine Learning Project - All State Insurance Claims Severity Prediction
In this ensemble machine learning project, we will predict what kind of claims an insurance company will get. This is implemented in python using ensemble machine learning algorithms.

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.

Perform Time series modelling using Facebook Prophet
In this project, we are going to talk about Time Series Forecasting to predict the electricity requirement for a particular house using Prophet.