docs: public void updateInsideEntry(int spanStart, int spanEnd, int splitInd,
        double[] values, Factor binaryRuleProbabilities) {
      Preconditions.checkArgument(binaryRuleProbabilities.getVars().size() == 4);
      
      if (sumProduct) {
        updateEntrySumProduct(insideChart[spanStart][spanEnd], values,
            binaryRuleProbabilities.coerceToDiscrete().getWeights(), parentVar.getOnlyVariableNum());
      } else {
        Tensor weights = binaryRuleProbabilities.coerceToDiscrete().getWeights();
  
        updateInsideEntryMaxProduct(spanStart, spanEnd, values, weights, splitInd);
      }
    }