Python में NLP के लिए Feature Engineering
Rounak Banik
Data Scientist
| review | label |
|---|---|
'The movie was good and not boring' |
positive |
'The movie was not good and boring' |
negative |
'for you a thousand times over'
[
'for you',
'you a',
'a thousand',
'thousand times',
'times over'
]
'for you a thousand times over'
[
'for you a',
'you a thousand',
'a thousand times',
'thousand times over'
]
सिर्फ bigrams बनाता है।
bigrams = CountVectorizer(ngram_range=(2,2))
unigrams, bigrams और trigrams बनाता है।
ngrams = CountVectorizer(ngram_range=(1,3))
Python में NLP के लिए Feature Engineering