script for text mining edited