We assign a weight w to each of the training instances, computed as the inverse of its class frequency in the training set.
w is obtained by dividing the total number of training samples by the number of training samples belonging to the class of the given utterance.