Jointly optimizing word representations for lexical and sentential tasks with the C-PHRASE model