How to make difference from I would, I had, and I'd?

How to differentiate"I would" and “I had” from I’ d as I am a new comer in English.

.
Only the sentence context will tell us which is meant by “I’d”.
.