Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
HCG_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
양지수
2021-04-18 19:28:29 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0a30a2ea82e0484b0e53c58288a3722d51c89b36
0a30a2ea
1 parent
62852a2a
정렬후 가중치삭제 날짜 추가 필요
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
knp.py
knp.py
View file @
0a30a2e
...
...
@@ -82,10 +82,10 @@ for i in range(len(TfIf)-1):
TfIf
[
i
]
.
sort
(
key
=
lambda
x
:
x
[
1
],
reverse
=
True
)
#가중치기준 내림차순 정렬
print
(
TfIf
)
onlynouns
=
[]
for
i
in
range
(
len
(
TfIf
)
-
1
):
for
i
in
range
(
len
(
TfIf
)):
onlynouns
.
append
([])
for
j
in
range
(
len
(
TfIf
[
i
])
-
1
):
for
k
in
range
(
len
(
TfIf
[
i
][
j
])
+
1
):
for
j
in
range
(
len
(
TfIf
[
i
])):
for
k
in
range
(
len
(
TfIf
[
i
][
j
])):
if
k
%
2
==
0
:
onlynouns
[
i
]
.
append
(
TfIf
[
i
][
j
][
k
])
print
(
onlynouns
)
...
...
Please
register
or
login
to post a comment