Apple suggests, as a first step, picking stress values according to parts of speech. I have found from experience that this is only useful as a very rough guide to get you started; the meaning of the sentence will usually lead you to stress certain words more than this table suggests, and to reduce the stress of other words.