on-internet
← Community

Do we include all the combinations of n-grams in the actual anlaysis?

Stack Overflow ·

I looked at multiple tutorials on how to derive n-grams (here I will stick to bigrams) and included them in the analysis in NLP. Do we need to include all the possible combinations of bigrams as features because not all the bigrams would be meaningful? For example, if we have a sentence such as "I like this movie because it was fun and scary" and consider bigrams as well, these include (after pre-processing): bigrams=["like movie","movie fun", "fun scary"] I am not sure this might be a good approach, but what I can think of now is to include some frequent bigrams only as features. Or are there

Comments

Sign in or sign up to comment and upvote.

No comments yet.