Modified scripts for processing phrase table