code: public double[] probs(final Span[] spans) {
  
      final double[] sprobs = new double[spans.length];
      final double[] probs = this.bestSequence.getProbs();
  
      for (int si = 0; si < spans.length; si++) {
        double p = 0;
        for (int oi = spans[si].getStart(); oi < spans[si].getEnd(); oi++) {
          p += probs[oi];
        }
        p /= spans[si].length();
        sprobs[si] = p;
      }
  
      return sprobs;
    }
docs: Returns an array of probabilities for each of the specified spans which is
  the arithmetic mean of the probabilities for each of the outcomes which
  make up the span.
  
  @param spans
  The spans of the names for which probabilities are desired.
  
  @return an array of probabilities for each of the specified spans.