Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. if (self.pos_tag == truth):
  2.     if (truth == pred):
  3.         self.matrix['tp'] += 1
  4.     if (truth != pred):
  5.         self.matrix['fp'] += 1
  6. if (self.pos_tag !== truth):
  7.     if (truth == pred):
  8.         self.matrix['tn'] += 1
  9.     if (truth != pred):
  10.         self.matrix['fn'] += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement