Grammar fragment acquisition using syntactic and semantic clustering