In machine learning approach, a document (text) is usually modeled as a bag-of-words, a set of words without any word order or syntactic relation information.
the whole sentimental orientation is highly influenced by the sentiment polarity of each word.