質問編集履歴
2
コードの修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -58,10 +58,10 @@
|
|
58
58
|
```python
|
59
59
|
box = []
|
60
60
|
for i in noun1:
|
61
|
-
box.append(i)
|
62
61
|
for j in noun2:
|
63
62
|
noun = i.similarity(j)
|
64
63
|
if noun >= 0.65:
|
64
|
+
box.append(i)
|
65
65
|
print("noun1[{}]".format(noun1.index(i)), "noun2[{}]".format(noun2.index(j)))
|
66
66
|
print(i, j)
|
67
67
|
print(noun)
|
1
改善点の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -50,4 +50,20 @@
|
|
50
50
|
print('')
|
51
51
|
lists = i.list()
|
52
52
|
print(lists)
|
53
|
+
```
|
54
|
+
|
55
|
+
自己改善点
|
56
|
+
空のリストを作ってから、入れることによって出力できました。
|
57
|
+
よく、for文でどの様な処理がされているか、理解することが大切でした。
|
58
|
+
```python
|
59
|
+
box = []
|
60
|
+
for i in noun1:
|
61
|
+
box.append(i)
|
62
|
+
for j in noun2:
|
63
|
+
noun = i.similarity(j)
|
64
|
+
if noun >= 0.65:
|
65
|
+
print("noun1[{}]".format(noun1.index(i)), "noun2[{}]".format(noun2.index(j)))
|
66
|
+
print(i, j)
|
67
|
+
print(noun)
|
68
|
+
print('')
|
53
69
|
```
|