Image variants, incremental build, internal cache, etc.

A while ago, I began experimenting with various methods in building minimalist container images for Python applications. As a result, I would like to share some of the tips and tricks that I have learned along the way.

This article covers the following key concepts:

  • Image variants
  • Working directory and…

Utilizing requests or aiohttp packages

Since its inception, Streamlit has been gaining immense popularity among developers for building data applications in Python. It released its official 1.0 version on Oct 5, 2021. For your information, Streamlit is —

“… an open-source Python library that makes it easy to create and share beautiful, custom web apps…

Utilizing a machine translation-based sentence-alignment tool

Shopping carts lined up

By reading this piece, you will learn to align parallel sentences from two monolingual files (ordered sentences but not aligned properly). Let’s say that you have the following English sentences (taken from the translated English version of The Metamorphosis by Franz Kafka)

One morning, as Gregor Samsa was waking up…

Bitext mining using Language-agnostic BERT sentence embedding model

The topic for today is about bitext mining on two monolingual files (unordered sentences) to find parallel sentences. In this tutorial, you will learn to use a language-agnostic BERT sentence embedding model called LaBSE.

From the Tensorflow Hub, it states that LaBSE model

… is trained and optimized to produce…

Requests with Threads vs. aiohttp with Semaphore

By reading this piece, you will learn to make multiple asynchronous requests concurrently in Python. This tutorial covers two different methods:

  • via requests package with Threads (a native thread for each request)
  • via aiohttp client with Semaphore (to limit and pool the number of tasks)

Both implementations are inspired by…

Language detection, Zawgyi-Unicode conversion and Tokenization

The topic for today is an open-source and free-to-use NLP Toolkit for the Myanmar language called pyidaungsu. Based on the official documentation, pyiduangsu is a

… Python library for Myanmar language. Useful in Natural Language Processing and text preprocessing for Myanmar language.

At the…

Achieve your debugging goals without wasting too much time on it


As an application enters production, the most challenging portion begins, and the maintenance starts. The maintenance team debugs applications whenever they are required to do so. The debugging team looks for solutions that will solve the problem ASAP without interfering with production.

Debugging an application is difficult owing to poor…

Ng Wai Foong

Senior AI Engineer@Yoozoo | Content Writer #NLP #datascience #programming #machinelearning | Linkedin:

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store