when run to text.py, get error TypeError: unsupported operand type(s) for +: 'method-wrapper' and 'int'.
Chaned vocabulary.len to vocabulary.len() but get another error.
run script:
python sparse_bow_features_from_raw_data.py trn.json.gz tst.json.gz train.txt test.txt
df = np.zeros(vocabulary.len + 1) # +1 for OOV
when run to text.py, get error TypeError: unsupported operand type(s) for +: 'method-wrapper' and 'int'. Chaned vocabulary.len to vocabulary.len() but get another error.
run script: python sparse_bow_features_from_raw_data.py trn.json.gz tst.json.gz train.txt test.txt