30 ms·
> _translations = { > r'covid|cases|pandemic|virus|coronavirus': 'sickness', > r'trump': 'dictator' >}
by s9w 6y ago
> _translations = {
> r'covid|cases|pandemic|virus|coronavirus': 'sickness',
> r'trump': 'dictator'
>}
- artdgn 6y agoThat's a simple way to work with those few special out-of-vocabulary negative words that are part of a lot of negative content. It doesn't mean that everything with those words is automatically negative though, they're just replaced by known words. A nice feature would be to be able to add / edit them of course (but I haven't got around to that).