Modify : rearrange deleted sentences
just sorted it ! It is much better.
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -42,6 +42,8 @@ router.get('/', function(req, res, next) { | ... | @@ -42,6 +42,8 @@ router.get('/', function(req, res, next) { |
42 | // All tasks are done now | 42 | // All tasks are done now |
43 | var Rank = ranker.getTextRank(graph).probabilityNodes; | 43 | var Rank = ranker.getTextRank(graph).probabilityNodes; |
44 | var selectedIndex = ranker.getSelectedIndex(Rank, 3); | 44 | var selectedIndex = ranker.getSelectedIndex(Rank, 3); |
45 | + // 문장의 순서대로 정렬하는 게 문맥상 자연스러운 듯. | ||
46 | + selectedIndex.sort(); | ||
45 | var result = ''; | 47 | var result = ''; |
46 | for(var i = 0; i < 3; i++){ | 48 | for(var i = 0; i < 3; i++){ |
47 | for(var j = 0; j < sentences.length; j++){ | 49 | for(var j = 0; j < sentences.length; j++){ | ... | ... |
-
Please register or login to post a comment