chkla commited on
Commit
b443682
1 Parent(s): 6bde957

Upload 7 files

Browse files
app.py ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import os
3
+ import frontmatter
4
+ import json
5
+ # import pyperclip
6
+
7
+ def load_prompts():
8
+ prompts = []
9
+ prompt_dir = "prompt"
10
+
11
+ for filename in os.listdir(prompt_dir):
12
+ if filename.endswith(".md"):
13
+ with open(os.path.join(prompt_dir, filename), "r") as file:
14
+ prompt = frontmatter.load(file)
15
+ prompts.append({
16
+ "id": prompt.get("id"),
17
+ "title": prompt.get("title"),
18
+ "author": prompt.get("author"),
19
+ "date": prompt.get("date"),
20
+ "language": prompt.get("language"),
21
+ "task": prompt.get("task"),
22
+ "version": prompt.get("version"),
23
+ "addedby": prompt.get("addedby"),
24
+ "keywords": prompt.get("keywords"),
25
+ "content": prompt.content
26
+ })
27
+
28
+ return prompts
29
+
30
+ def render_prompt_details(prompt):
31
+ st.markdown(f"# {prompt['title']}")
32
+ st.write("---")
33
+ st.write(f"**Author:** {prompt['author']}")
34
+ st.write(f"**Date:** {prompt['date']}")
35
+ st.write(f"**Language:** {prompt['language']}")
36
+ st.write(f"**Task:** {prompt['task']}")
37
+ st.write("---")
38
+ st.write(prompt["content"])
39
+
40
+ def render_prompt_card(prompt):
41
+ card_style = """
42
+ <style>
43
+ .card {
44
+ background-color: #f8f9fa;
45
+ border: 1px solid #d9d9d9;
46
+ border-radius: 5px;
47
+ padding: 15px;
48
+ margin-bottom: 10px;
49
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
50
+ display: flex;
51
+ justify-content: space-between;
52
+ align-items: center;
53
+ }
54
+ .card-content {
55
+ display: flex;
56
+ flex-direction: column;
57
+ }
58
+ .button-style {
59
+ background-color: #FFD700;
60
+ border: none;
61
+ color: white;
62
+ text-align: center;
63
+ text-decoration: none;
64
+ display: inline-block;
65
+ font-size: 16px;
66
+ margin: 4px 2px;
67
+ cursor: pointer;
68
+ border-radius: 4px;
69
+ }
70
+ </style>
71
+ """
72
+
73
+ st.markdown(card_style, unsafe_allow_html=True)
74
+
75
+ card_container = st.container()
76
+
77
+ with card_container:
78
+ with st.container():
79
+ col1, col2 = st.columns([4, 1])
80
+
81
+ with col1:
82
+ st.write(f"### **Card:** {prompt['title']}")
83
+ st.write(f"**Prompt Language:** {prompt['language']}")
84
+ st.write(f"**Annotation Task:** {prompt['task']}")
85
+ st.write(f"**Version:** {prompt['version']}")
86
+ st.write(f"**Keywords:** {prompt['keywords']}")
87
+
88
+ with col2:
89
+ if st.button("View details", key=f"view-details-{prompt['id']}"):
90
+ st.session_state.selected_prompt_id = prompt["id"]
91
+ st.experimental_rerun()
92
+
93
+ st.markdown("<style>.button-style {background-color: #FFD700;}</style>", unsafe_allow_html=True)
94
+
95
+ card_container.container().write("---")
96
+
97
+ def main():
98
+ if "selected_prompt_id" not in st.session_state:
99
+ st.session_state.selected_prompt_id = None
100
+
101
+ st.title("🏷️ Annotation PromptCards Archive")
102
+ st.write("Welcome to the Prompt Archive! Click on the 'View details' button on each prompt card to see more information about the annotation prompt.")
103
+ st.write("---")
104
+
105
+ prompts = load_prompts()
106
+ language_list = list(set([prompt['language'] for prompt in prompts]))
107
+ task_list = list(set([prompt['task'] for prompt in prompts]))
108
+
109
+ st.sidebar.header("**Annotation PromptCards Archive**")
110
+
111
+ st.sidebar.write("A collection of prompts for annotation tasks in NLP. This is a work in progress. Please contribute your prompts via GitHub [[Upload]](https://github.com/chkla/PromptCards).")
112
+
113
+ # add a link to the GitHub repository
114
+ st.sidebar.write("---")
115
+ st.sidebar.write(f"**Total number of prompts:** {len(prompts)}")
116
+ st.sidebar.write("---")
117
+
118
+ st.sidebar.header("🧑🏽‍🚀 Explore:")
119
+ search = st.sidebar.text_input("Search by title")
120
+ language_filter = st.sidebar.selectbox("Filter by Language", ["All"] + language_list)
121
+ task_filter = st.sidebar.selectbox("Filter by Task", ["All"] + task_list)
122
+
123
+ if st.sidebar.button("Back to list"):
124
+ st.session_state.selected_prompt_id = None
125
+ st.experimental_rerun()
126
+
127
+ if st.session_state.selected_prompt_id is None:
128
+ filtered_prompts = [
129
+ prompt for prompt in prompts
130
+ if (search.lower() in prompt['title'].lower() or not search)
131
+ and (prompt['language'] == language_filter or language_filter == "All")
132
+ and (prompt['task'] == task_filter or task_filter == "All")
133
+ ]
134
+
135
+ for prompt in filtered_prompts:
136
+ render_prompt_card(prompt)
137
+ else:
138
+ prompt = next((p for p in prompts if p["id"] == st.session_state.selected_prompt_id), None)
139
+ if prompt:
140
+ render_prompt_details(prompt)
141
+
142
+ st.sidebar.write("---")
143
+ st.sidebar.write("Made with ❤️ and 🤖 by [Chkla](https://chkla.github.io/).")
144
+
145
+ if __name__ == "__main__":
146
+ main()
prompt/gilardi-frame-problem-solution-2023.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ id: problem-solution-en-gilardi2023
3
+ title: Problem/ Solution Frames
4
+ author: Gilardi et al. 2023
5
+ date: 11.4.2023
6
+ language: en
7
+ task: frames
8
+ version: 1.0
9
+ addedby: chkla
10
+ keywords: frames, content moderation
11
+ ---
12
+
13
+ ## Prompt Description
14
+
15
+ [Briefly describe the purpose of the prompt and the context in which it is intended to be used, especially in the context of artificial annotation with generative models.]
16
+
17
+ ## Prompt Text
18
+
19
+ Content moderation can be seen from two different perspectives:<br>
20
+ • Content moderation can be seen as a PROBLEM; for example, as a restriction of free speech<br>
21
+ • Content moderation can be seen as a SOLUTION; for example, as a protection from harmful speech<br>
22
+ <br>
23
+ For each tweet in the sample, follow these instructions:<br>
24
+ 1. Carefully read the text of the tweet, paying close attention to details.<br>
25
+ 2. Classify the tweet as describing content moderation as a problem, as a solution, or neither.<br>
26
+ <br>
27
+ Tweets should be classified as describing content moderation as a PROBLEM if they emphasize negative effects of content moderation, such as restrictions to free speech, or the biases that can emerge from decisions regarding what users are allowed to post.<br>
28
+ <br>
29
+ Tweets should be classified as describing content moderation as a SOLUTION if they emphasize positive effects of content moderation, such as protecting users from various kinds of harmful content, including hate speech, misinformation, illegal adult content, or spam.<br>
30
+ <br>
31
+ Tweets should be classified as describing content moderation as NEUTRAL if they do not emphasize possible negative or positive effects of content moderation, for example if they simply report on the content moderation activity of social media platforms without linking them to potential advantages or disadvantages for users or stakeholders.
32
+
33
+ ## Language
34
+
35
+ - Prompt Language: [Specify the language of the prompt, e.g., English]
36
+ - Dataset Language: [Specify the language of the dataset to which the prompt is applied, e.g., English]
37
+
38
+ ## NLP Task
39
+
40
+ - Task: [Specify the NLP task in more detail, e.g., sentiment analysis, named entity recognition, summarization]
41
+ - Subtask: [If applicable, provide any subtask or variation related to the main NLP task, e.g., binary sentiment classification, multi-class sentiment classification]
42
+
43
+ ## Example Input and Output
44
+
45
+ - Example 1
46
+ - Input: [Provide an example input for the prompt]
47
+ - Output: [Provide an example output for the given input]
48
+ - Example 2
49
+ - Input: [Provide another example input for the prompt]
50
+ - Output: [Provide another example output for the given input]
51
+
52
+ ## Parameters and Constraints
53
+
54
+ - Parameter 1: [Specify any parameters, such as temperature or token count]
55
+ - Parameter 2: [Specify additional parameters or constraints if applicable]
56
+
57
+ ## Evaluation Metrics
58
+
59
+ [List the evaluation metrics used to assess the quality of the generated artificial annotations, such as accuracy, F1 score, or BLEU score.]
60
+
61
+ ## Use Cases
62
+
63
+ [List any specific use cases or applications for the prompt in artificial annotation, such as data annotation, semi-supervised learning, or active learning.]
64
+
65
+ ## Limitations and Potential Biases
66
+
67
+ [Briefly discuss any limitations or potential biases associated with the prompt, as well as any steps taken to mitigate them, in the context of artificial annotation with generative models.]
68
+
69
+ ## Related Research and References
70
+
71
+ [List any relevant research papers, articles, or resources that informed the creation of the prompt or are closely related to it, especially in the area of artificial annotation with generative models. Include proper citations where applicable.]
72
+
prompt/gilardi-moderation-relevance-2023.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ id: moderation-relevance-en-gilardi2023
3
+ title: Content Moderation Relevance
4
+ author: Gilardi et al. 2023
5
+ date: 11.4.2023
6
+ language: en
7
+ task: relevance
8
+ version: 1.0
9
+ addedby: chkla
10
+ keywords: content moderation, relevance
11
+ ---
12
+
13
+ ## Prompt Description
14
+
15
+ [Briefly describe the purpose of the prompt and the context in which it is intended to be used, especially in the context of artificial annotation with generative models.]
16
+
17
+ ## Prompt Text
18
+ For each tweet in the sample, follow these instructions:<br>
19
+ 1. Carefully read the text of the tweet, paying close attention to details.<br>
20
+ 2. Carefully read the text of the tweet, paying close attention to details.<br>
21
+ <br>
22
+ Tweets should be coded as RELEVANT when they directly relate to content moderation, as defined above. This includes tweets that discuss: social media platforms’ content moderation rules and practices, governments’ regulation of online content moderation, and/or mild forms of content moderation like flagging.<br>
23
+ <br>
24
+ Tweets should be coded as IRRELEVANT if they do not refer to content moderation, as defined above, or if they are themselves examples of moderated content. This would include, for example, a Tweet by Donald Trump that Twitter has labeled as “disputed”, a tweet claiming that something is false, or a tweet containing sensitive content. Such tweets might be subject to content moderation, but are not discussing content moderation. Therefore, they should be coded as irrelevant for our purposes.
25
+
26
+ ## Language
27
+
28
+ - Prompt Language: [Specify the language of the prompt, e.g., English]
29
+ - Dataset Language: [Specify the language of the dataset to which the prompt is applied, e.g., English]
30
+
31
+ ## NLP Task
32
+
33
+ - Task: [Specify the NLP task in more detail, e.g., sentiment analysis, named entity recognition, summarization]
34
+ - Subtask: [If applicable, provide any subtask or variation related to the main NLP task, e.g., binary sentiment classification, multi-class sentiment classification]
35
+
36
+ ## Example Input and Output
37
+
38
+ - Example 1
39
+ - Input: [Provide an example input for the prompt]
40
+ - Output: [Provide an example output for the given input]
41
+ - Example 2
42
+ - Input: [Provide another example input for the prompt]
43
+ - Output: [Provide another example output for the given input]
44
+
45
+ ## Parameters and Constraints
46
+
47
+ - Parameter 1: [Specify any parameters, such as temperature or token count]
48
+ - Parameter 2: [Specify additional parameters or constraints if applicable]
49
+
50
+ ## Evaluation Metrics
51
+
52
+ [List the evaluation metrics used to assess the quality of the generated artificial annotations, such as accuracy, F1 score, or BLEU score.]
53
+
54
+ ## Use Cases
55
+
56
+ [List any specific use cases or applications for the prompt in artificial annotation, such as data annotation, semi-supervised learning, or active learning.]
57
+
58
+ ## Limitations and Potential Biases
59
+
60
+ [Briefly discuss any limitations or potential biases associated with the prompt, as well as any steps taken to mitigate them, in the context of artificial annotation with generative models.]
61
+
62
+ ## Related Research and References
63
+
64
+ [List any relevant research papers, articles, or resources that informed the creation of the prompt or are closely related to it, especially in the area of artificial annotation with generative models. Include proper citations where applicable.]
65
+
prompt/gilardi-policy-frames-2023.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ id: policy-frames-en-gilardi2023
3
+ title: Policy Frames Classification
4
+ author: Gilardi et al. 2023
5
+ date: 11.4.2023
6
+ language: en
7
+ task: frames
8
+ version: 1.0
9
+ addedby: chkla
10
+ keywords: policy frames, content moderation
11
+ ---
12
+
13
+ ## Prompt Description
14
+
15
+ [Briefly describe the purpose of the prompt and the context in which it is intended to be used, especially in the context of artificial annotation with generative models.]
16
+
17
+ ## Prompt Text
18
+
19
+ Content moderation, as described above, can be linked to various other topics, such as health, crime, or equality.
20
+ For each tweet in the sample, follow these instructions:<br>
21
+ 1. Carefully read the text of the tweet, paying close attention to details. 2. Classify the tweet into one of the topics defined below.<br>
22
+ <br>
23
+ The topics are defined as follows:<br>
24
+ * ECONOMY: The costs, benefits, or monetary/financial implications of the issue (to an individual, family, community, or to the economy as a whole).<br>
25
+ * Capacity and resources: The lack of or availability of physical, geographical, spatial, human, and financial resources, or the capacity of existing systems and resources to implement or carry out policy goals.<br>
26
+ * MORALITY: Any perspective—or policy objective or action (including proposed action)that is compelled by religious doctrine or interpretation, duty, honor, righ- teousness or any other sense of ethics or social responsibility.<br>
27
+ * FAIRNESS AND EQUALITY: Equality or inequality with which laws, punishment, rewards, and resources are applied or distributed among individuals or groups. Also the balance between the rights or interests of one individual or group compared to another individual or group.<br>
28
+ * CONSTITUTIONALITY AND JURISPRUDENCE: The constraints imposed on or freedoms granted to individuals, government, and corporations via the Constitution, Bill of Rights and other amendments, or judicial interpretation. This deals specifically with the authority of government to regulate, and the authority of in- dividuals/corporations to act independently of government.<br>
29
+ * POLICY PRESCRIPTION AND EVALUATION: Particular policies proposed for addressing an identified problem, and figuring out if certain policies will work, or if existing policies are effective.<br>
30
+ * LAW AND ORDER, CRIME AND JUSTICE: Specific policies in practice and their enforcement, incentives, and implications. Includes stories about enforcement and interpretation of laws by individuals and law enforcement, breaking laws, loopholes, fines, sentencing and punishment. Increases or reductions in crime.<br>
31
+ * SECURITY AND DEFENSE: Security, threats to security, and protection of one’s person, family, in-group, nation, etc. Generally an action or a call to action that can be taken to protect the welfare of a person, group, nation sometimes from a not yet manifested threat.<br>
32
+ * HEALTH AND SAFETY: Health care access and effectiveness, illness, disease, sanitation, obesity, mental health effects, prevention of or perpetuation of gun violence, infrastructure and building safety.<br>
33
+ * QUALITY OF LIFE: The effects of a policy on individuals’ wealth, mobility, access to resources, happiness, social structures, ease of day-to-day routines, quality of community life, etc.<br>
34
+ * CULTURAL IDENTITY: The social norms, trends, values and customs constituting culture(s), as they relate to a specific policy issue.<br>
35
+ * PUBLIC OPINION: References to general social attitudes, polling and demographic information, as well as implied or actual consequences of diverging from or “getting ahead of” public opinion or polls.<br>
36
+ * POLITICAL: Any political considerations surrounding an issue. Issue actions or efforts or stances that are political, such as partisan filibusters, lobbyist involvement, bipartisan efforts, deal-making and vote trading, appealing to one’s base, mentions of political maneuvering. Explicit statements that a policy issue is good or bad for a particular political party.<br>
37
+ * EXTERNAL REGULATION AND REPUTATION: The United States’ external relations with another nation; the external relations of one state with another; or relations between groups. This includes trade agreements and outcomes, comparisons of policy outcomes or desired policy outcomes.<br>
38
+ * OTHER: Any topic that does not fit into the above categories.<br>
39
+
40
+ ## Language
41
+
42
+ - Prompt Language: [Specify the language of the prompt, e.g., English]
43
+ - Dataset Language: [Specify the language of the dataset to which the prompt is applied, e.g., English]
44
+
45
+ ## NLP Task
46
+
47
+ - Task: [Specify the NLP task in more detail, e.g., sentiment analysis, named entity recognition, summarization]
48
+ - Subtask: [If applicable, provide any subtask or variation related to the main NLP task, e.g., binary sentiment classification, multi-class sentiment classification]
49
+
50
+ ## Example Input and Output
51
+
52
+ - Example 1
53
+ - Input: [Provide an example input for the prompt]
54
+ - Output: [Provide an example output for the given input]
55
+ - Example 2
56
+ - Input: [Provide another example input for the prompt]
57
+ - Output: [Provide another example output for the given input]
58
+
59
+ ## Parameters and Constraints
60
+
61
+ - Parameter 1: [Specify any parameters, such as temperature or token count]
62
+ - Parameter 2: [Specify additional parameters or constraints if applicable]
63
+
64
+ ## Evaluation Metrics
65
+
66
+ [List the evaluation metrics used to assess the quality of the generated artificial annotations, such as accuracy, F1 score, or BLEU score.]
67
+
68
+ ## Use Cases
69
+
70
+ [List any specific use cases or applications for the prompt in artificial annotation, such as data annotation, semi-supervised learning, or active learning.]
71
+
72
+ ## Limitations and Potential Biases
73
+
74
+ [Briefly discuss any limitations or potential biases associated with the prompt, as well as any steps taken to mitigate them, in the context of artificial annotation with generative models.]
75
+
76
+ ## Related Research and References
77
+
78
+ [List any relevant research papers, articles, or resources that informed the creation of the prompt or are closely related to it, especially in the area of artificial annotation with generative models. Include proper citations where applicable.]
79
+
prompt/gilardi-stance-detection-2023.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ id: stance-detectionen-gilardi2023
3
+ title: Stance Detection
4
+ author: Gilardi et al. 2023
5
+ date: 11.4.2023
6
+ language: en
7
+ task: stance
8
+ version: 1.0
9
+ addedby: chkla
10
+ keywords: stance, content moderation
11
+ ---
12
+
13
+ ## Prompt Description
14
+
15
+ [Briefly describe the purpose of the prompt and the context in which it is intended to be used, especially in the context of artificial annotation with generative models.]
16
+
17
+ ## Prompt Text
18
+
19
+ In the context of content moderation, Section 230 is a law in the United States that protects websites and other online platforms from being held legally responsible for the content posted by their users. This means that if someone posts something illegal or harmful on a website, the website itself cannot be sued for allowing it to be posted. However, websites can still choose to moderate content and remove anything that violates their own policies.<br>
20
+ <br>
21
+ For each tweet in the sample, follow these instructions:<br>
22
+ 1. Carefully read the text of the tweet, paying close attention to details.<br>
23
+ 2. Classify the tweet as having a positive stance towards Section 230, a negative stance, or a neutral stance.<br>
24
+
25
+ ## Language
26
+
27
+ - Prompt Language: [Specify the language of the prompt, e.g., English]
28
+ - Dataset Language: [Specify the language of the dataset to which the prompt is applied, e.g., English]
29
+
30
+ ## NLP Task
31
+
32
+ - Task: [Specify the NLP task in more detail, e.g., sentiment analysis, named entity recognition, summarization]
33
+ - Subtask: [If applicable, provide any subtask or variation related to the main NLP task, e.g., binary sentiment classification, multi-class sentiment classification]
34
+
35
+ ## Example Input and Output
36
+
37
+ - Example 1
38
+ - Input: [Provide an example input for the prompt]
39
+ - Output: [Provide an example output for the given input]
40
+ - Example 2
41
+ - Input: [Provide another example input for the prompt]
42
+ - Output: [Provide another example output for the given input]
43
+
44
+ ## Parameters and Constraints
45
+
46
+ - Parameter 1: [Specify any parameters, such as temperature or token count]
47
+ - Parameter 2: [Specify additional parameters or constraints if applicable]
48
+
49
+ ## Evaluation Metrics
50
+
51
+ [List the evaluation metrics used to assess the quality of the generated artificial annotations, such as accuracy, F1 score, or BLEU score.]
52
+
53
+ ## Use Cases
54
+
55
+ [List any specific use cases or applications for the prompt in artificial annotation, such as data annotation, semi-supervised learning, or active learning.]
56
+
57
+ ## Limitations and Potential Biases
58
+
59
+ [Briefly discuss any limitations or potential biases associated with the prompt, as well as any steps taken to mitigate them, in the context of artificial annotation with generative models.]
60
+
61
+ ## Related Research and References
62
+
63
+ [List any relevant research papers, articles, or resources that informed the creation of the prompt or are closely related to it, especially in the area of artificial annotation with generative models. Include proper citations where applicable.]
64
+
prompt/gilardi-topic-detection-2023.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ id: topic-detection-gilardi2023
3
+ title: Topic Detection
4
+ author: Gilardi et al. 2023
5
+ date: 11.4.2023
6
+ language: en
7
+ task: topic detection
8
+ version: 1.0
9
+ addedby: chkla
10
+ keywords: content moderation, topic detection
11
+ ---
12
+
13
+ ## Prompt Description
14
+
15
+ [Briefly describe the purpose of the prompt and the context in which it is intended to be used, especially in the context of artificial annotation with generative models.]
16
+
17
+ ## Prompt Text
18
+
19
+ Tweets about content moderation may also discuss other related topics, such as:<br>
20
+ 1. Section 230, which is a law in the United States that protects websites and other online platforms from being held legally responsible for the content posted by their users (SECTION 230).<br>
21
+ 2. The decision by many social media platforms, such as Twitter and Facebook, to suspend Donald Trump’s account (TRUMP BAN).
22
+ 3. Requests directed to Twitter’s support account or help center (TWITTER SUPPORT).<br>
23
+ 4. Social media platforms’ policies and practices, such as community guidelines or terms of service (PLATFORM POLICIES).
24
+ 5. Complaints about platform’s policy and practices in deplatforming and content moderation or suggestions to suspend particular accounts, or complaints about accounts being suspended or reported (COMPLAINTS).<br>
25
+ 6. If a text is not about the SECTION 230, COMPLAINTS, TRUMP BAN, TWIT- TER SUPPORT, and PLATFORM POLICIES, then it should be classified in OTHER class (OTHER).<br>
26
+ <br>
27
+ For each tweet in the sample, follow these instructions:<br>
28
+ 1. Carefully read the text of the tweet, paying close attention to details.<br>
29
+ 2. Please classify the following text according to topic (defined by function of the text, author’s purpose and form of the text). You can choose from the following classes: SECTION 230, TRUMP BAN, COMPLAINTS, TWITTER SUPPORT, PLATFORM POLICIES, and OTHER<br>
30
+
31
+ ## Language
32
+
33
+ - Prompt Language: [Specify the language of the prompt, e.g., English]
34
+ - Dataset Language: [Specify the language of the dataset to which the prompt is applied, e.g., English]
35
+
36
+ ## NLP Task
37
+
38
+ - Task: [Specify the NLP task in more detail, e.g., sentiment analysis, named entity recognition, summarization]
39
+ - Subtask: [If applicable, provide any subtask or variation related to the main NLP task, e.g., binary sentiment classification, multi-class sentiment classification]
40
+
41
+ ## Example Input and Output
42
+
43
+ - Example 1
44
+ - Input: [Provide an example input for the prompt]
45
+ - Output: [Provide an example output for the given input]
46
+ - Example 2
47
+ - Input: [Provide another example input for the prompt]
48
+ - Output: [Provide another example output for the given input]
49
+
50
+ ## Parameters and Constraints
51
+
52
+ - Parameter 1: [Specify any parameters, such as temperature or token count]
53
+ - Parameter 2: [Specify additional parameters or constraints if applicable]
54
+
55
+ ## Evaluation Metrics
56
+
57
+ [List the evaluation metrics used to assess the quality of the generated artificial annotations, such as accuracy, F1 score, or BLEU score.]
58
+
59
+ ## Use Cases
60
+
61
+ [List any specific use cases or applications for the prompt in artificial annotation, such as data annotation, semi-supervised learning, or active learning.]
62
+
63
+ ## Limitations and Potential Biases
64
+
65
+ [Briefly discuss any limitations or potential biases associated with the prompt, as well as any steps taken to mitigate them, in the context of artificial annotation with generative models.]
66
+
67
+ ## Related Research and References
68
+
69
+ [List any relevant research papers, articles, or resources that informed the creation of the prompt or are closely related to it, especially in the area of artificial annotation with generative models. Include proper citations where applicable.]
70
+
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ streamlit
2
+ frontmatter
3
+ json