Freeze the gum using an ice cube. Shatter the frozen gum with a knife handle and vacuum. Some citrus based products have been demonstrated to break down the stickiness of gum so that it can be removed.
Source: Wear-Dated Carpet Spot Cleaning Guide