Jan Švec | honzas.cz Česky
Menu

Python: Parsing Text from Wikipedia

November 1, 2014

This archived note is useful for anyone working in machine learning who needs to process large amounts of text from Wikipedia. It shows several pieces of Python code that help with extracting clean text from MediaWiki pages.

Serving Files from MongoDB GridFS

August 21, 2014

In several projects we used MongoDB for its flexible data representation. This archived technical note shows how to serve files stored in MongoDB GridFS through an HTTP server written in Python, including a Tornado StaticFileHandler-based approach.

On the Winners' Podium in Artificial Intelligence

July 25, 2014

In June and July 2014, I used the methods I had worked with in my dissertation in a Kaggle competition on multi-label classification of Greek media articles. The competition ran from 2 June to 15 July 2014 and ended with my model in third place out of 121 teams.

Where Did the Bug Probably Happen?

June 4, 2014

Where did the bug probably happen? This typical debugging question opens a short series about Python bugs that look obvious only after they are found. The first example shows how a missing comma in a multiline tuple or list literal can lead to surprising behaviour.

A Children's Water System

June 1, 2014
DIY

Children's Day deserves a proper gift, and it is hard to beat the combination of sand and water. This first archived post from honzas.cz shows how I brought water to a playground with a sandbox and turned it into a shower, fountain, and slide accessory in one.