I'm trying out some Text Classification tutorials here:
I don't understand the function calls in line 59 -- 65:
#creates a feature selection mechanism that uses all words
def make_full_dict(words):
return dict([(word, True) for word in words])
#tries using all words as the feature selection mechanism
print 'using all words as features'
evaluate_features(make_full_dict)
Shouldn't make_full_dict be called with a string input value for words?
evaluate_featuresis attempting to evaluate functions and mostly likely uses that function and calls it with certain parameters. It would be helpful to post the definition ofevaluate_featuresto be sure