An author may produce an ambiguous piece of writing where the meaning is unclear either unintentionally or with the purpose of conveying two meanings at once.
A reader may respond ambivalently by holding two different views or reactions in mind simultaneously - we might react in this way to Shylock.