docs: public CcgParse decodeBestParseForSpan(int spanStart, int spanEnd, CcgParser parser) {
      double maxProb = -1;
      int maxEntryIndex = -1;
      double[] probs = getChartEntryProbsForSpan(spanStart, spanEnd);
      for (int i = 0; i < chartSizes[spanStart][spanEnd]; i++) {
        if (probs[i] > maxProb) {
          maxProb = probs[i];
          maxEntryIndex = i;
        }
      }
  
      if (maxEntryIndex == -1) {
        // No parses.
        return null;
      } else {
        return decodeParseFromSpan(spanStart, spanEnd, maxEntryIndex, parser);
      }
    }