Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created July 25, 2021 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/8687a1df8c4314d5e95ff9f2032c02f2 to your computer and use it in GitHub Desktop.
Save amankharwal/8687a1df8c4314d5e95ff9f2032c02f2 to your computer and use it in GitHub Desktop.
data["labels"] = data["class"].map({0: "Hate Speech",
1: "Offensive Language",
2: "No Hate and Offensive"})
print(data.head())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment