Read training data from stdin.

Fixes #1.