Techniques for Context-Free Grammar Induction and Applications