convert weight-p to PhrasePenalty. /Nicola Bertoldi
beautify