質問編集履歴

1

ソースコードの修正

2018/11/05 07:16

投稿

kanpan
kanpan

スコア20

test CHANGED
File without changes
test CHANGED
@@ -24,21 +24,11 @@
24
24
 
25
25
  from gensim.models import KeyedVectors
26
26
 
27
- import numpy as np
28
-
29
- import csv
30
-
31
27
 
32
28
 
33
29
  tagger = MeCab.Tagger("-Owakati")
34
30
 
35
31
  model = KeyedVectors.load_word2vec_format('./entity_vector.model.bin', binary=True)
36
-
37
-
38
-
39
- csv_file = open("./posneg_train_data.csv", "r", encoding="ms932", errors="", newline="" )
40
-
41
- f1 = csv.reader(csv_file, delimiter=",", doublequote=True, lineterminator="\r\n", quotechar='"', skipinitialspace=True)
42
32
 
43
33
 
44
34