Introduction to Speech Recognition with Python

Speech recognition, as the name suggests, refers to automatic recognition of human speech. Speech recognition is one of the most important tasks in the domain of human computer interaction. If you have ever interacted with Alexa or have ever ordered Siri to complete a task, you have already experienced the power of speech recognition. Speech recognition has various applications ranging from automatic transcription of speech data (like voicemails) to interacting with robots via speech. In this tutorial, you will see […]

Read more

Deploying Django Applications to AWS EC2 with Docker

Introduction In the fast-paced field of web applications, containerization has become not only common but the preferred mode of packaging and delivering web applications. Containers allow us to package our applications and deploy them anywhere without having to reconfigure or adapt our applications to the deployment platform. At the forefront of containerization is Docker, which is a tool that is used to package and run applications in containers that are platform agnostic. Serverless technology is also flourishing in this era […]

Read more

Convert Strings to Numbers and Numbers to Strings in Python

Introduction Python allows you to convert strings, integers, and floats interchangeably in a few different ways. The simplest way to do this is using the basic str(), int(), and float() functions. On top of this, there are a couple of other ways as well. Before we get in to converting strings to numbers, and converting numbers to strings, let’s first see a bit about how strings and numbers are represented in Python. Note: For simplicity of running and showing these […]

Read more

Variable-Length Arguments in Python with *args and **kwargs

Introduction Some functions have no arguments, others have multiple. There are times we have functions with arguments we don’t know about beforehand. We may have a variable number of arguments because we want to offer a flexible API to other developers or we don’t know the input size. With Python, we can create functions to accept any amount of arguments. In this article, we will look at how we can define and use functions with variable length arguments. These functions […]

Read more

Ensemble/Voting Classification in Python with Scikit-Learn

Introduction Ensemble classification models can be powerful machine learning tools capable of achieving excellent performance and generalizing well to new, unseen datasets. The value of an ensemble classifier is that, in joining together the predictions of multiple classifiers, it can correct for errors made by any individual classifier, leading to better accuracy overall. Let’s take a look at the different ensemble classification methods and see how these classifiers can be implemented in Scikit-Learn. What are Ensemble Models in Machine Learning? Credit: Pixabay […]

Read more

String Formatting with Python 3’s f-Strings

Introduction Python 3.6 introduced a new way to format strings: f-Strings. It is faster than other string formatting methods in Python, and they allow us to evaluate Python expressions inside a string. In this post, we’ll look at the various ways we can format strings in Python. Then we’ll have a deeper look at f-Strings, looking at how we can use it when displaying different data. Traditional String Formatting in Python Before we get into f-Strings, let’s have a look […]

Read more

Using SQLAlchemy with Flask and PostgreSQL

Introduction Databases are a crucial part of modern applications since they store the data used to power them. Generally, we use the Structured Query Language (SQL) to perform queries on the database and manipulate the data inside of it. Though initially done via dedicated SQL tools, we’ve quickly moved to using SQL from within applications to perform queries. Naturally, as time passed, Object Relational Mappers (ORMs) came to be – which enable us to safely, easily and conveniently connect to […]

Read more

Text Translation with Google Translate API in Python

Unless you have been hiding under a rock, you have probably used Google Translate on many occasions in your life. Whenever you try to translate a word or a sentence from a certain language to another, it is the Google Translate API which brings you the desired results in the background. Though you can translate anything by simply going to the Google Translate web page, you can also integrate Google Translate API into your web applications or desktop programs. The […]

Read more

Text Classification with BERT Tokenizer and TF 2.0 in Python

This is the 23rd article in my series of articles on Python for NLP. In the previous article of this series, I explained how to perform neural machine translation using seq2seq architecture with Python’s Keras library for deep learning. In this article we will study BERT, which stands for Bidirectional Encoder Representations from Transformers and its application to text classification. BERT is a text representation technique like Word Embeddings. If you have no idea of how word embeddings work, take […]

Read more

Deploying Django Apps to Heroku from GitHub

Introduction Heroku is a popular Platform-as-a-Service (PaaS) that allows developers to run and deploy applications by availing the infrastructure required in terms of hardware and software. This means that we do not have to invest in the hardware and software needed to expose our applications to end-users and this freedom allows us to concentrate on our business logic instead of deployment. In this post, we will outline how to deploy a simple Django application to a Heroku pipeline. It targets […]

Read more
1 865 866 867 868 869 901