implemented global keyword representation in alignment model