Classify documents.