The post-war Soviet occupation led to the formation of a Communist " people 's republic " in 1947 and the abdication of the king .