added semantic representation method to Sentence