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:57:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fdc2f7359a8b426a6371f66b571bac7fad301628
fdc2f735
1 parent
5988c574
Add : add some comments
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
Server/routes/index.js
Server/routes/index.js
View file @
fdc2f73
...
...
@@ -39,8 +39,9 @@ router.get('/', function(req, res, next) {
},
// 3rd param is the function to call when everything's done
function
(
err
){
//
All tasks are done now
//
그래프를 얻었으니 텍스트랭크를 돌린다.
var
Rank
=
ranker
.
getTextRank
(
graph
).
probabilityNodes
;
// 가장 영향력이 큰 노드 세 개를 취한다.
var
selectedIndex
=
ranker
.
getSelectedIndex
(
Rank
,
3
);
// 문장의 순서대로 정렬하는 게 문맥상 자연스러운 듯.
selectedIndex
.
sort
();
...
...
Please
register
or
login
to post a comment