Automating Template Creation for Ranking-Based Dialogue Models