Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
ysc committed Mar 8, 2016
1 parent fdb0fd2 commit c37c313
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,23 +135,19 @@ private String getToken() throws IOException {
//同义标注
if (SYNONYM) {
SynonymTagging.process(Arrays.asList(word));
StringBuilder synonym = new StringBuilder();
word.getSynonym().forEach(w -> {
if (!"".equals(w.getText())) {
tokens.offer(w.getText());
}
synonym.append(w.getText()).append(" ");
});
}
//反义标注
if (ANTONYM) {
AntonymTagging.process(Arrays.asList(word));
StringBuilder antonym = new StringBuilder();
word.getAntonym().forEach(w -> {
if (!"".equals(w.getText())) {
tokens.offer(w.getText());
}
antonym.append(w.getText()).append(" ");
});
}
token = tokens.poll();
Expand Down

0 comments on commit c37c313

Please sign in to comment.