daily pastebin goal
65%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def get_target_for_label(label):
  2.     """Convert a label to `0` or `1`.
  3.     Args:
  4.         label(string) - Either "POSITIVE" or "NEGATIVE".
  5.     Returns:
  6.         `0` or `1`.
  7.     """
  8.     if label == "POSITIVE":
  9.         return 1
  10.     else:
  11.         return 0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top