Facts: - zi: hongda -lrb- hongda hung-ta -rrb- - title: chancellor - pinyin: pei ju - kingdom: the tang dynasty - death date: 627 547 - trad: - simp: - birth date: 547 - name: pei ju - wg: pei chu - other: pei shiju -lrb- pei shiju pei shih-chu -rrb- - post: duke an-i ching kung jing of anyi -lrb- Anyi jing gong Based on these bullet points, write a short biography describing the life of pei ju .
The answer to this question is:
pei ju -lrb- 547-627 -rrb- , birth name pei shiju , courtesy name hongda , formally duke jing of anyi , was a high level official during the sui and tang dynasties , briefly serving as a chancellor during the reign of emperor gaozu of tang .he was praised by traditional chinese historians for his ability and lack of corruption , but blamed him for flattering emperor yang of sui and contributing to sui 's downfall by encouraging many external military campaigns that drained sui 's resources .