Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김지훈
/
3line
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
2
Merge Requests
0
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김지훈
2016-11-12 11:56:46 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5988c5744a8e5370f1bc05c220d2d236b4b9ba7e
5988c574
1 parent
2b648243
Modify : rearrange deleted sentences
just sorted it ! It is much better.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
Server/routes/index.js
Server/routes/index.js
View file @
5988c57
...
...
@@ -42,6 +42,8 @@ router.get('/', function(req, res, next) {
// All tasks are done now
var
Rank
=
ranker
.
getTextRank
(
graph
).
probabilityNodes
;
var
selectedIndex
=
ranker
.
getSelectedIndex
(
Rank
,
3
);
// 문장의 순서대로 정렬하는 게 문맥상 자연스러운 듯.
selectedIndex
.
sort
();
var
result
=
''
;
for
(
var
i
=
0
;
i
<
3
;
i
++
){
for
(
var
j
=
0
;
j
<
sentences
.
length
;
j
++
){
...
...
Please
register
or
login
to post a comment