here's a short video on "DisCoCat" - https://www.youtube.com/watch?v=99keybEZN4g
In this case, could you even know which one was actually meant?
Technically, I'd think that the ambiguity is removed when you use "rabbit-chasing dog", but that is assuming the text available is sufficiently precise.