Posts from Python

N-grams in Python with nltk

By Abinash Reddy

In this article, we will learn about n-grams and the implementation of n-grams in Python. What is N-grams Text n-grams are widely used in text mining and natural language processin.... Read More

How To Plot Heatmap in Python

By Abinash Reddy

A Heatmap is a statistical representation that helps to represent the importance of the features in form of colors. In this article, we learn to plot a heatmap in Python. They are .... Read More

Extracting patches from large images using Python

By Abinash Reddy

When training any deep learning algorithm we preferred to use small images because using small images gives better performance. But what to do when we have large images. One way to.... Read More

Convert Image into a Pencil Sketch in Python

By Abinash Reddy

In this tutorial, we will use computer vision to convert an image into a pencil sketch with the help of the Python OpenCV library. We will use the OpenCVPython library to convert t.... Read More

Find line number of a specific string or substring or word from a .txt file in Python

By Rohan Harish

In this tutorial, we are going to learn how to find location of one or many strings in terms of line numbers in a text file using Python. For instance let us assume we want to find.... Read More

Brick Sort in Python

By Abinash Reddy

In this article, we will learn about Brick Sort and its implementation in Python. What is Brick Sort? Brick Sort is also called OddEven Sort. It is essentially a modified version o.... Read More

How to recursively copy a directory in Python

By Karan Mittal

In this tutorial, we will learn how to recursively copy a certain directory in Python. We’ll be using the shutil package in Python to achieve our goal. shutil – This is.... Read More

Python Program to calculate the value of nPr

By Abinash Reddy

In this article, we will learn how to calculate the value of nPr in Python. Where nPr represented n permutation r. Permutation refers to the process of organizing all the individua.... Read More

Related Posts