I've switched Python 3.6 now, but when running informative features I end up with gibberish when trying to print Russian in my feature extractor.
Most Informative Features
three_last_letters = 'оÌ' noun : verb = 6.6 : 1.0
three_last_letters = 'гÐ' noun : verb = 5.4 : 1.0
three_last_letters = 'еÐ' noun : verb = 4.7 : 1.0
three_last_letters = 'мÐ' noun : verb = 4.4 : 1.0
three_last_letters = 'нÑ' noun : verb = 3.5 : 1.0
In the case of the feature extractor itself
def POS_features(word):
return{'three_last_letters':word[-3:]}
print(POS_features(u'Богатир'))
I can get тир to print just fine, is there something I can do to make the informative features return Russian characters?