Skip to content

Commit

Permalink
Use synchronize clusteror for author coords.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aazhar committed Aug 1, 2018
1 parent 315d084 commit c589229
Showing 1 changed file with 4 additions and 11 deletions.
Expand Up @@ -116,15 +116,6 @@ public List<Person> processing(List<LayoutToken> tokens, boolean head) {
if (cluster == null) {
continue;
}
LayoutToken token1 = null;
for(int i = 0 ; i < tokenization1.size(); i++){
LayoutToken token = tokenization1.get(i);
for(LabeledTokensContainer container : cluster.getLabeledTokensContainers())
if(token.getText().equals(container.getToken())) {
token1 = token;
tokenization1.remove(i);
}
}

TaggingLabel clusterLabel = cluster.getTaggingLabel();
Engine.getCntManager().i(clusterLabel);
Expand Down Expand Up @@ -227,8 +218,10 @@ public List<Person> processing(List<LayoutToken> tokens, boolean head) {
aut.setSuffix(clusterContent);
}
}
if(token1 != null)//this should throw exception
aut.addLayoutTokens(token1);
for(LabeledTokensContainer container : cluster.getLabeledTokensContainers()){
for(LayoutToken token : container.getLayoutTokens())
aut.addLayoutTokens(token);
}
}

// add last built author
Expand Down

0 comments on commit c589229

Please sign in to comment.