Spaces:
Running
on
L4
Running
on
L4
Update app.py
Browse files
app.py
CHANGED
@@ -58,16 +58,19 @@ ANSWER
|
|
58 |
|
59 |
DEFAULT_POLICY = """# Policy
|
60 |
|
61 |
-
##
|
62 |
|
63 |
This policy is designed to determine whether or not content is hate speech.
|
64 |
|
65 |
## Definition of Terms
|
66 |
|
67 |
-
- Protected Classes: Individuals or groups
|
68 |
-
-
|
|
|
69 |
|
70 |
-
## Interpretation of Language
|
|
|
|
|
71 |
|
72 |
## Definition of Labels
|
73 |
|
@@ -75,19 +78,22 @@ This policy is designed to determine whether or not content is hate speech.
|
|
75 |
|
76 |
#### Includes
|
77 |
|
78 |
-
-
|
79 |
-
-
|
80 |
-
-
|
81 |
-
- Explicit Discrimination Advocacy:
|
82 |
-
-
|
|
|
|
|
|
|
83 |
|
84 |
#### Excludes
|
85 |
|
86 |
-
-
|
87 |
-
-
|
88 |
-
-
|
89 |
-
-
|
90 |
-
-
|
91 |
"""
|
92 |
|
93 |
DEFAULT_CONTENT = "LLMs steal our jobs."
|
|
|
58 |
|
59 |
DEFAULT_POLICY = """# Policy
|
60 |
|
61 |
+
## Overview
|
62 |
|
63 |
This policy is designed to determine whether or not content is hate speech.
|
64 |
|
65 |
## Definition of Terms
|
66 |
|
67 |
+
- Protected Classes: Individuals or groups distinguished by race (e.g. Black, White), ethnicity (e.g. Hispanic), nationality (e.g. Canadian, Argentinian), caste (e.g. Brahmins, Kshatriyas, Vaishyas), immigration status (e.g. Immigrants), religion (e.g. Catholics, Jews), disability (e.g. blind people, deaf people), disease status (e.g. people with AIDS), sexual orientation (e.g. gays, bisexuals), transgender status (e.g. trans people, cis people), gender identity (e.g. women, men), gender expression (e.g. masculine, feminine), or sex (e.g. male, female).
|
68 |
+
- Derogatory Slur: Any term or phrase used pejoratively or contemptuously towards a member or members of a protected class, including those historically reclaimed but used in a derogatory context.
|
69 |
+
- Non-Protected Classes: Categories defined by, political party membership (e.g. Democrats, Tories), political beliefs (e.g. fascists, communists), hobbies (e.g. games, knitters), criminal history (e.g. criminals, convicts), or profession (e.g. doctors, farmers).
|
70 |
|
71 |
+
## Interpretation of Language:
|
72 |
+
|
73 |
+
- Terminology or phrasing that can be construed in various ways IS hate speech UNLESS context clearly indicates it unambiguously IS NOT hate speech. So, for example, attacks on a religion as an institution (e.g. "Hinduism is a garbage religion") SHOULD be understood as attacks on the followers of that religion.
|
74 |
|
75 |
## Definition of Labels
|
76 |
|
|
|
78 |
|
79 |
#### Includes
|
80 |
|
81 |
+
- Direct and Indirect Violence Advocacy: Any form of expression that celebrates, justifies, incites, or threatens physical or psychological harm against individuals or groups identified by their membership in a protected class.
|
82 |
+
- Dehumanization and Vilification: Content suggesting that individuals or groups, explicitly identified by their membership in a specific protected class, are subhuman, inherently lesser beings, or using animalistic descriptions in a way that promotes disdain or hate.
|
83 |
+
- Derogatory and Dehumanizing Language: Use of slurs, epithets, or any derogatory language aimed at belittling, humiliating, or inciting hatred against individuals or groups explicitly identified by their membership in a specific protected class.
|
84 |
+
- Explicit and Implicit Discrimination Advocacy: Promoting exclusion, segregation, or denial of rights against individuals or groups explicitly identified by their membership in a specific protected class.
|
85 |
+
- Collective Attribution of Negative Actions: Assigning collective blame or advocating collective punishment based on the actions or perceived characteristics of individuals or groups identified by their membership in a protected class.
|
86 |
+
- Inferiority and Superiority Claims: Statements that categorically assign inferiority or superiority, moral or intellectual, to individuals or groups identified by their membership in a protected class.
|
87 |
+
- Denial or Distortion of Historical Atrocities: Denying, grossly trivializing, or distorting documented atrocities against groups identified by their membership in a protected class, undermining their significance or the suffering of their members.
|
88 |
+
- Conspiracy Theories: Propagating unfounded allegations that individuals or groups, identified by their membership in a protected class, are responsible for serious harms or controlling significant institutions to the detriment of society.
|
89 |
|
90 |
#### Excludes
|
91 |
|
92 |
+
- Attacks on Non-Protected Classes: Content that attacks or criticizes individuals or groups identified by their membership in a Non-Protected Class, EVEN if that attack is violent, threatening, or otherwise hateful (e.g. "Criminals should all be rounded up and shot!").
|
93 |
+
- Criticism of Beliefs and Institutions: Constructive critique or discussion of political ideologies, religious doctrines, or institutions without resorting to hate speech or targeting individuals or groups identified by their membership in a protected class.
|
94 |
+
- Neutrally Reporting Historical Events: Neutrally and descriptively reporting or discussion of factual events in the past that could be construed as negative about individuals or groups identified by their membership in a protected class.
|
95 |
+
- Pushing Back on Hateful Language: Content where the writer pushes back on, condemns, questions, criticizes, or mocks a different person's hateful language or ideas.
|
96 |
+
- Artistic and Educational Content: Content with legitimate artistic, educational, or documentary value that discusses or portrays issues related to hate speech in a context clearly aimed at enlightening or informing without promoting hate.
|
97 |
"""
|
98 |
|
99 |
DEFAULT_CONTENT = "LLMs steal our jobs."
|