From Tokens to Materials: Leveraging Language Models for Scientific Discovery