From d5a52a8e7b69ff70a16fb60bcf23c44a0649dd06 Mon Sep 17 00:00:00 2001 From: mayunyun <121999660@qq.com> Date: Wed, 4 May 2016 17:52:30 +0800 Subject: [PATCH] 1. remove stopword from span windows 2. update unittest --- include/cppjieba/TextRankExtractor.hpp | 3 ++- test/unittest/textrank_test.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/cppjieba/TextRankExtractor.hpp b/include/cppjieba/TextRankExtractor.hpp index a625695..34c6aae 100644 --- a/include/cppjieba/TextRankExtractor.hpp +++ b/include/cppjieba/TextRankExtractor.hpp @@ -135,8 +135,9 @@ namespace cppjieba { if (IsSingleWord(words[i]) || stopWords_.find(words[i]) != stopWords_.end()) { continue; } - for(size_t j=i+1;j