Taipei City police arrested a 32-year-old man after he threatened people with a sword during a dispute with ex-partners.