def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def __normalize_probability(self, index_point, probability):
        if probability == 0.0:
            return