Skip to content

Skip NER level probability computation if there are no entities

We need an early return because when there is no entity predicted, no indices are found and this crashes the probability computation right after.

In this case, we simply return [], [], [].