'Makes sure the training data is cleaned, e.q. removes trailing whitespaces from intent annotations.'

def sanitice_examples(self, examples):

    for e in examples:
        if (e.get(u'intent') is not None):
            e.set(u'intent', e.get(u'intent').strip())
    return examples
