A probabilistic CKY parser for PCFGs