Sentiment-Analysis
Sentiment-Analysis copied to clipboard
Chinese Shopping Reviews sentiment analysis
### this need think sentence length has imapct on classify of sentiment. ### report ``` Using TensorFlow backend. D:\Program Files (x86)\Python\lib\site-packages\gensim\utils.py:862: UserWarning: detected Windows; aliasing chunkize to chunkize_serial warnings.warn("detected Windows;...
Traceback (most recent call last): File "Sentiment_lstm.py", line 204, in lstm_predict(string) File "Sentiment_lstm.py", line 178, in lstm_predict model = model_from_yaml(yaml_string) File "/home/user/anaconda3/envs/gu_py27/lib/python2.7/site-packages/keras/models.py", line 187, in model_from_yaml return layer_from_config(config, custom_objects=custom_objects) File...
what is wrong with this ‘ValueError: You must specify either total_examples or total_words, for proper alpha and progress calculations. The usual value is total_examples=model.corpus_count‘ problem?thank you
I want to pull your code for my graduation design, but it fails....
运行时 用的是给出的例子 卡在line14 报错 : ‘参数长度错误!’
 这个怎么回事?
Prefix dict has been built succesfully. Traceback (most recent call last): File "predict.py", line 23, in lstm_predict(sentence) File "code/Sentiment_lstm.py", line 187, in lstm_predict data=input_transform(string) File "code/Sentiment_lstm.py", line 173, in input_transform...
运行遇到错误
您好,我运行了主函数里面注释掉掉部分,在函数get_train_vecs 里面得到这个错误·~~。 get_train_vecs(x_train,x_test) #计算词向量并保存为train_vecs.npy,test_vecs.npy File "code/Sentiment_svm.py", line 55, in get_train_vecs imdb_w2v.train(x_train) File "/data/home/guanggao/anaconda2/lib/python2.7/site-packages/gensim/models/word2vec.py", line 813, in train raise ValueError("You must specify either total_examples or total_words, for proper alpha and progress...
Traceback (most recent call last): File "/home/wj/malware/env/word2vec_test/Malware/code/malware_lstm.py", line 178, in train() File "/home/wj/malware/env/word2vec_test/Malware/code/malware_lstm.py", line 174, in train train_lstm(n_symbols, embedding_weights, x_train, y_train, x_test, y_test) File "/home/wj/malware/env/word2vec_test/Malware/code/malware_lstm.py", line 137, in train_lstm model.add(LSTM(output_dim=50,...