Automatic text classification using a multi-agent framework