For a small area, you can mix one cup of vinegar and 2 cups of water and spray on the area. If your entire carpet is damaged, you should call in a water mitigation company, such as PuroClean, to take care of the damage.