A Neural Model for Regular Grammar Induction