Python tutorials

Efficient Extractive Question Answering on CPU using QUIP

TLDR — Extractive question answering is an important task for providing a good user experience in many applications. The popular Retriever-Reader framework for QA using BERT can be difficult to scale as it requires the re-processing of candidate documents in the context of a question in real time. By using phrase embeddings, we can process question and context independently which drastically reduces runtime demands. On a limited experiment I found QUIP to be 4x faster than a comparable QA model […]

Read more

Cool New Features in Python 3.11

Python 3.11 was published on October 24, 2022. This latest version of Python is faster and more user-friendly. After seventeen months of development, it’s now ready for production. As in every version, Python 3.11 comes with lots of improvements and changes. You can see a list of all of them in the documentation. Here, you’ll explore the coolest and most impactful new features. In this video course, you’ll learn about new features and improvements like: Better error messages with more […]

Read more

Algebraic Datatypes Using Nothing But Lambda Functions

In my previous blog, Implementing Linked List Using Nothing But Lambda Functions in Python, I introduced a basic type “Pair”, that is a building block for creating different kinds of data structures. In this blog I will explain to you the fundamental Algebraic Datatypes — Sum & Product types (and all of this using what we already defined in previous blog). In fact, Pair is the most basic Product type.

Read more
1 65 66 67 68 69 181