bring text classification somewhat closer to current API

... and make examples easier to paste into IPython's
docstring mode.