Implemented support for global context features in classifiers