Learning Function-Specific Word Representations