Learning to resolve bridging references