An Overview of Multiprocessing in Python

Python is one of the most popular programming languages today. However, one big weakness is that Python has no real parallelization capabilities. Multiprocessing is a way to implement virtual parallelization with Python. In this post we’ll cover: What is Multiprocessing? The Python Multiprocessing Library Running two Functions in parallel Multiprocessing Functions with Arguments Multiprocessing forContinue reading “An Overview of Multiprocessing in Python”

Python Multiprocessing Functions with Dependencies

Python multiprocessing is used for virtually running programs in parallel. We can use multiprocessing to simply run functions in parallel and run functions that need arguments in parallel. Sometimes, we also need to be able to access the values generated or changed by the functions we run. In this post we’re going to cover howContinue reading “Python Multiprocessing Functions with Dependencies”

Python Multiprocessing with Arguments

The Python multiprocessing library is a native library that allows virtual parallelization of processes in Python. It’s pretty easy to run multiple functions in parallel in Python, but it’s more complicated to do it when those functions have arguments. In this post we’re going to cover: What Python Multiprocessing Processes Are Creating Functions to RunContinue reading “Python Multiprocessing with Arguments”

Using NLP to Analyze a YouTube Lecture Series – Part 2

In part one of Using NLP to Analyze a YouTube Lecture Series we asynchronously sent API requests to use NLP on downloaded YouTube Transcripts. As part of getting our analyzed data, we had to split up the text data to get all the requests due to internet speed limits. In this post, we’ll combine allContinue reading “Using NLP to Analyze a YouTube Lecture Series – Part 2”

Using NLP to Analyze a YouTube Lecture Series – Part 1

YouTube is one of the best places to learn online today. What if you are just curious what the main points of a series is though? We can use natural language processing to analyze a YouTube series. This way we can gain some insight into what the series is about and decide if we wantContinue reading “Using NLP to Analyze a YouTube Lecture Series – Part 1”

Technical Interviews: Finding the Longest Palindrome

One of the questions you could be asked if you go through a technical interview for a software engineering role is to find the longest palindrome in a given string. This is a medium easy level interview question and shouldn’t take you longer than 15 to 20 minutes to get. If you want to stopContinue reading “Technical Interviews: Finding the Longest Palindrome”

Text Sentiment Analysis and How to Do it

Sentiment analysis is an example of applied Natural Language Processing (NLP). In this context, “sentiment” is almost interchangeable with text polarity. Text polarity is a measure from -1 to 1 of the sentiment of the text. The dictionary definition of sentiment is actually “one’s view or attitude towards something”, so this could include emotions fromContinue reading “Text Sentiment Analysis and How to Do it”

What AI Keyword Extraction Is and How to Do It

Keyword extraction is an example of applied Natural Language Processing (NLP). NLP is the subfield of AI concerned with analyzing, understanding, and generating language. Keyword extraction is one of the basic techniques in NLP. The first step to keyword extraction is tokenization. After tokenizing a text, it’s a simple step to look through for aContinue reading “What AI Keyword Extraction Is and How to Do It”

RuntimeError: Event Loop is Closed asyncio Fix

There are so many solutions to this Runtime error on Stack Overflow that don’t work. If you write Python code using asyncio, you either have or most likely will run into this runtime error at some point. I personally came across this error while running asynchronous API requests. When you’re running an async/await function usingContinue reading “RuntimeError: Event Loop is Closed asyncio Fix”

%d bloggers like this: