Framework for connecting classifiers