Jacopo Farina's blog

Teacher and developer, currently working at Flixbus in Milan.

Posts

Generate a grammar quiz in 300+ languages using simple NLP

In this article I’ll explain how I populated the database that powers grammarquiz, a grammar quiz app that I created for the Kodoeba initiative. The code of the application is freely available. The backstory As you may already know, Tatoeba …

Correlating sleep duration and flashcard performance

For a few years I regularly use Anki, a flashcard system, to memorize and remember information, in particular German words. This daily activity sometimes feels like a breeze and sometimes more like an endless chore. It requires focus, and …

Add punctuation to text using Skorch

Note: The whole code for this article is freely available on GitHub A few weeks ago I saw a talk about Skorch, a library that wraps a PyTorch neural network to use it as a Scikit-learn model. That is amazing: I can take an existing product …

Gensim: a generator is not an iterator

When using Gensim word2vec on a dataset stored in a database, I was pleased to see the library accepts an iterator to represent the corpus, allowing to process bigger-than-memory datasets. So, I wrote my generator function to stream text …

Visualize the functioning of supervised learning models

ConvnetJS offers a demo of a neural network which paints an image learning to predict the color of a pixel given its coordinates. I liked the idea as it is immediate and visually appealing, and decided to create a visual comparison of …

Fleximatcher, a library to help parse natural language

Note: this is an old article and while the software is still available and I think the idea is pretty but you probably want to give a look to this. The software here described is probably more flexible, but harder to use. Some months ago, I …

Eliza, in italiano

“Terminator” in polacco significa apprendista, e non essendo un nome particolarmente accattivante fu diffuso in Polonia con il nome di assassino elettronico. La creazione di macchine pensanti è sempre stata vista come imminente dal cinema …