Learning Language Structures through Grounding