You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 19, 2020. It is now read-only.
File "C:\Sander\my_code\sunny-side-up-master_mar7\src\Baseline\Word2Vec\Sentiment140_W2V_Pipeline.py", line 215, in
main(sys.argv[1:])
File "C:\Sander\my_code\sunny-side-up-master_mar7\src\Baseline\Word2Vec\Sentiment140_W2V_Pipeline.py", line 188, in main
model = train_d2v_model(all_data, epoch_num=10)
File "C:\Sander\my_code\sunny-side-up-master_mar7\src\Baseline\Word2Vec\Sentiment140_W2V_Pipeline.py", line 50, in train_d2v_model
ls = LabeledSentence(preprocess_tweet(sentence).split(), [label + '_%d' % neg_count])
TypeError: unsupported operand type(s) for +: 'int' and 'str'
seems to be
label is 1
when used as str
if label == 'pos':
for example
['qqq' + '_%d' % neg_count]
['qqq_0']
File "C:\Sander\my_code\sunny-side-up-master_mar7\src\Baseline\Word2Vec\Sentiment140_W2V_Pipeline.py", line 215, in
main(sys.argv[1:])
File "C:\Sander\my_code\sunny-side-up-master_mar7\src\Baseline\Word2Vec\Sentiment140_W2V_Pipeline.py", line 188, in main
model = train_d2v_model(all_data, epoch_num=10)
File "C:\Sander\my_code\sunny-side-up-master_mar7\src\Baseline\Word2Vec\Sentiment140_W2V_Pipeline.py", line 50, in train_d2v_model
ls = LabeledSentence(preprocess_tweet(sentence).split(), [label + '_%d' % neg_count])
TypeError: unsupported operand type(s) for +: 'int' and 'str'
seems to be
label is 1
when used as str
if label == 'pos':
for example
['qqq' + '_%d' % neg_count]
['qqq_0']
is ok