Skip to content

Instantly share code, notes, and snippets.

View gracecarrillo's full-sized avatar

Graciela Carrillo gracecarrillo

View GitHub Profile
#------------ FEATURE ENGINEERING ----------------#
#--- Part of Speech Tags (POS)--#
nltk.download('averaged_perceptron_tagger')
pos_family = {
'NOUN' : ['NN','NNS','NNP'], # Removed 'NNPS'
'PRON' : ['PRP','PRP$','WP','WP$'],
'VERB' : ['VB','VBD','VBG','VBN','VBP','VBZ'],