Given labeled data, supervised learning can be applied to obtain sentiment weights for each word.
the effectiveness of supervised sentiment analysis depends on having training data in the same domain as the target, and this is not always possible.