Local and Global Decoding in Text Generation