Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -82,10 +82,10 @@ for i in range(len(TfIf)-1): | ... | @@ -82,10 +82,10 @@ for i in range(len(TfIf)-1): |
82 | TfIf[i].sort(key=lambda x:x[1], reverse=True) #가중치기준 내림차순 정렬 | 82 | TfIf[i].sort(key=lambda x:x[1], reverse=True) #가중치기준 내림차순 정렬 |
83 | print(TfIf) | 83 | print(TfIf) |
84 | onlynouns = [] | 84 | onlynouns = [] |
85 | -for i in range(len(TfIf)-1): | 85 | +for i in range(len(TfIf)): |
86 | onlynouns.append([]) | 86 | onlynouns.append([]) |
87 | - for j in range(len(TfIf[i])-1): | 87 | + for j in range(len(TfIf[i])): |
88 | - for k in range(len(TfIf[i][j])+1): | 88 | + for k in range(len(TfIf[i][j])): |
89 | if k%2==0: | 89 | if k%2==0: |
90 | onlynouns[i].append(TfIf[i][j][k]) | 90 | onlynouns[i].append(TfIf[i][j][k]) |
91 | print(onlynouns) | 91 | print(onlynouns) | ... | ... |
-
Please register or login to post a comment