Autogenerate pydantic models from openapi.yaml
Photo by Artturi
Read moreDeep Learning, NLP, NMT, AI, ML
Python tutorials
Photo by Artturi
Read moreMost modern web applications are powered by a REST API under the hood. That way, developers can separate the front-end code from the back-end logic, and users can interact with the interface dynamically. In this three-part tutorial series, you’re building a REST API with the Flask web framework. You’ve created a foundation with a basic Flask project and added endpoints, which you’ll connect to a SQLite database. You’re also testing your API with Swagger UI API documentation that you’re building […]
Read moreIf you’re using NumPy, Polars, Zarr, or many other libraries, setting a single environment variable or calling a single API function might make your code run 20%-80% faster. Or, more accurately, it may be that your code is running that much more slowly than it ought to. The problem? A conflict over who controls parallelism: your application, or the libraries it uses. Let’s see an example, and how you can solve it. The mystery of the speedy single-thread implementation We’re […]
Read moreClient object — Attribute does not exist
Read moreAI-Generated image of an ancient robot using Stable Diffusion.
Read moreSpam or Not Spam.
Read moreTaking a Django app from development to production is a demanding but rewarding process. In this video course, you’ll go through that process step by step. You’ll start at square one with a no-frills Django application then add in Gunicorn, Nginx, and domain registration. After working through this video course, you’ll be better equipped to take your Django app into production and serve it to the world. In this video course, you’ll learn: How you can take your Django app […]
Read morewhy we need to convert text to a vector? Machines don’t understand data in text form. we have to convert text to vectors so that mathematical operations can be performed on data. in NLP it is also know as word embeddings.
Read moreSource: Hutto, C.J. & Gilbert, E.E. (2014). VADER: A Parsimonious Rule-Based Model for Sentiment Analysis of Social Media Text (aaai.org) This article is about the VADER-sentiment model and how it generates the sentiment scores for social media text. I recently used this library to build a very basic model
Read more