Commonly PCFGs are learned using MLE of rewrite rule probabilities from large sets of treeannotated sentences.
the bucket weights are found empirically using a simple optimization procedure on k-fold training set accuracy.