Run a wet vacuum over the wet or damp area of the carpet to bring up as much of the water as possible. Remove as much water as you can until the carpet is only damp and excess water doesn’t come up when you press down into the carpet.
Sprinkle a large amount of baking soda over the damp carpet. Depending on the size of the damp carpet, you may need to use more than one canister of baking soda. Let the baking soda sit on the carpet for several hours, up to 24 hours, to allow it ample time to soak up the remaining moisture and odor from the carpet.
Vacuum up the baking soda from the carpet.
Run a large fan or a space heater to help dry the carpet more quickly.