Advertisement
viraco4a

Original

Mar 25th, 2019
512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. while (var3.hasNext()) {
  2. String wordKey = (String) var3.next();
  3. if (!newSO.containsKey(wordKey)) {
  4. newSO.put(wordKey, oldSO.get(wordKey));
  5. } else {
  6. SemanticOccurance so = new SemanticOccurance();
  7. so.setCount(newSO.get(wordKey).getCount() + oldSO.get(wordKey).getCount());
  8. newSO.put(wordKey, so);
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement