Personification
The ship has human-like characteristics. The sentence is talking as if the ship has the brains to decide it can sigh and hesitate.
You can remember by seeing that the word "person" is in "personification".
The letters always change. They are never the same as someone else’s.