The city will swear in Anne Lerner as mayor, the second mayor in the city’s history and the first woman to hold the title.