document processing for text mining