code: public Factor getMarginalEntries(int spanStart, int spanEnd) {
      return getOutsideEntries(spanStart, spanEnd).product(getInsideEntries(spanStart, spanEnd));
    }
docs: Get the marginal unnormalized probabilities over productions at a
  particular node in the tree.