Using domain knowledge for text mining