Cross validation issue

When I use cross validation for training my data I am getting ValueError: Found array with 0 sample(s) (shape=(0,)) while a minimum of 1 is required. What may be the reason . Please help me.

@Chaitanya it seems that you have intents without examples (with 0 samples)

or you may have some examples, but just fewer than the number of folds in your cross-validation. So some folds are ending up with zero examples.