Skip to content

Commit

Permalink
修改预处理的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gzp9595 committed Sep 29, 2016
1 parent 33f1bd8 commit aa1566c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/preprocess.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,15 @@ class Preprocesser{
npRaw.clear();
}
hasAt = true;
npStart = graph.size() - 1;
npStart = graph.size();
npRaw.clear();
}else if(hasAt){
npRaw.push_back(c);
}

if(c == 12298){
hasTitle = true;
titleStart = graph.size() - 1;
titleStart = graph.size();
titleRaw.clear();
}else if(hasTitle){
titleRaw.push_back(c);
Expand Down Expand Up @@ -346,7 +346,7 @@ class Preprocesser{
};

bool isPossibleTitle(Raw titleRaw){
if(titleRaw.size() > 10){
if(titleRaw.size() > 10 || titleRaw.size() == 0){
return false;
}else{
for(int i = 0; i < titleRaw.size(); i ++){
Expand Down

0 comments on commit aa1566c

Please sign in to comment.