concept range in category nlp

appears as: range, rge
Getting Started with Natural Language Processing

This is an excerpt from Manning's book Getting Started with Natural Language Processing.

There is a reason we left this application the last: there is a whole bunch of different approaches one can address it with, using a range of techniques that we discussed in this section, so it is indeed a good one to conclude with.

If you run the code from this listing unmodified, here is what you will learn: “cool” hasn’t changed its polarity between the 1990s and the 2000s – it has stayed quite a positive word throughout. Its sentiment strength, though, did drop slightly, from 1.28 in the 1990s to 1.19 in the 2000s. There are 1,968 adjectives in the 1990s adjectives lexicon and 2,041 in the 2000s one. As for the all frequent words data, both 1990s and 2000s lexicons contain 4,924 words – that is how many words are left of the most frequent 5,000 ones once the stopwords are filtered out (the selection of 4,924 and the sentiment weights are quite different though!). Finally, the movies lexicon contains 4,981 words in total – again, the result of filtering out stopwords among the most frequent 5,000 words used in the movies community. Recall from the data exploration section 7.3 that the total size of positive and negative vocabulary is within the range of 34,000-37,000 of words, i.e. much larger than these lexicons contain. At the same time, the sizes of the adjective vocabularies are comparable to the sizes of the adjective lexicons. The idea behind using lexicons is that they contain smaller but more informative sets of words. Let’s see if this helps detecting review polarity.