* Ensure unseen words are given low log probability

This commit is contained in:
Matthew Honnibal 2015-07-12 01:31:09 +02:00
parent 9d3b0d83de
commit ff9ff6f3fa

View File

@ -31,7 +31,7 @@ def get_lex_props(string):
'prefix': string[0], 'prefix': string[0],
'suffix': string[-3:], 'suffix': string[-3:],
'cluster': 0, 'cluster': 0,
'prob': 0, 'prob': -22,
'sentiment': 0 'sentiment': 0
} }