mirror of
https://github.com/explosion/spaCy.git
synced 2024-09-21 19:39:13 +03:00
* Ensure unseen words are given low log probability
This commit is contained in:
parent
9d3b0d83de
commit
ff9ff6f3fa
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user