More than 14,000 prisoners have been released in the past several weeks after the government said they were wrongly imprisoned by military intelligence .