A generic document classifier engine