Да, удалив дефис из аргумента filters
:
from keras_preprocessing.text import text_to_word_sequence
text = 'Decreased glucose-6-phosphate ...'
words = set(text_to_word_sequence(text,
filters='!"#$%&()*+,./:;<=>?@[\\]^_`{|}~\t\n'))
words
{'activity',
'affects',
'alcoholics',
'along',
'contrast',
'decreased',
'dehydrogenase',
'glucose-6-phosphate',
'in',
'oxidative',
'sensitivity',
'stress',
'visual',
'with'}
Это, конечно, повлияет на любое слово в вашем тексте, которое содержит дефис.