The semantics-syntax interface: learning grammatical categories and hierarchical syntactic structure through semantics