A document classifier