A text classification framework based on optimized error correcting output code