は、私はこのエラー問題
問題の署名を得続けますイベント名:APPCRASH
アプリケーション名:python.exe
アプリケーションのバージョン:0.0.0.0
アプリケーションのタイムスタンプ:4c73f7b6
障害モジュール名:
障害モジュールのバージョンを_csr.pyd:0.0.0.0
障害モジュールのタイムスタンプ:4d6a645b
例外コード:オフセットC0000005
例外:000c05d4
私は再インストールPythonと私のプログラムは、(すなわちgensim、nlptk、scipyのダウンロード上で動作するすべてのモジュールを試してみたし、 numpy)
これは十分なデータであるかどうかは分かりませんが、教えてください。最後の繰り返しで
lsi = models.LsiModel(corpus, num_topics = num_Topics)
index_lsi = similarities.MatrixSimilarity(lsi[corpus])
for k, v in dict_Queries.items():
File.write("Check Key: " +k+ "\n")
print "Running.... \n"
vec_bow = dict.doc2bow(v.split(), allow_update=True)
#In the last iteration, the code below the line doesn't run and i think the vec_lsi
#is the source of the problem but I don't know why?
vec_lsi = lsi[vec_bow]
#indexing the LSI
sims = index_lsi[vec_lsi]
sims = sorted(enumerate(sims), key = lambda item: -item[1])
if not cut_Off == 0:
sims = sims[0:cut_Off]
else:
pass
for t in sims:
dup_info = dict_tcs.get(t[0])
if t[1] > 0.75:
#print "Key: " + k + " Link: " + dup_info + "\n"
File.write("Adding: "+str(t)+ " To LSI actual \n")
if dict_Actual_LSI.has_key(k):
links = dict_Actual_LSI.get(k)
links.append(dup_info)
else:
links = []
links.append(dup_info)
dict_Actual_LSI[k] = links
print "Added\n"
、ライン以下のコードが実行されないと私はvec_lsiが問題の原因だと思うが、私はなぜか分からないのですか?
おかげ
何か問題はありますか? 'print"こんにちは世界は "仕事ですか? –
正確には、例えば、 'python -c"を試してみてください。 'hello、world' "'コマンドラインで –
はい、うまくいきます。 – Shahab