'Returns the number of proper entity training examples (containing at least one annotated entity).'

@lazyproperty
def num_entity_examples(self):

    return len([e for e in self.training_examples if (len(e.get(u'entities', [])) > 0)])
