def normalize(self, value):
        """Transforms to unicode and cleans missing tokens

        """
        if isinstance(value, basestring) and not isinstance(value, unicode):
            value = unicode(value, "utf-8")
        return None if value in self.missing_tokens else value
dataset/ETHPy150Open bigmlcom/python/bigml/modelfields.py/ModelFields.normalize/original