Spaces:
Runtime error
Runtime error
from transformers import pipeline | |
import streamlit as st | |
import pandas as pd | |
from PIL import Image | |
import os | |
# title | |
st.title('Combatting Climate Change Misinformation with Transformers') | |
# section 1: the context, problem; how to address | |
st.markdown("### The Problem ๐ค") | |
st.markdown("Misinformation about climate change spreads quickly and has direct impacts on public opinion and public policy surrounding the climate. Further, misinformation is difficult to combat, and people are able to \"verify\" false climate claims on biased sites. Ideally, people would be able to easily verify climate claims. This is where transformers come in.") | |
# section 2: what is misinformation? how is it combatted now? how successful is this? | |
st.markdown("### More about Misinformation") | |
st.markdown("What is misinformation? How does it spread?") | |
st.markdown("* **Misinformation** can be defined as โfalse or inaccurate information, especially that which is deliberately intended to deceive.โ") | |
st.markdown("* It can exist in different domains, and each domain has different creators and distributors of misinformation.") | |
st.markdown("* Misinformation regarding climate change is often funded by conservative foundations or large energy industries such as gas, coal, and oil. (1)") | |
misinfo_flowchart = Image.open('images/misinfo_chart.jpeg') | |
st.image(misinfo_flowchart, caption='The misinformation flowchart. (1)') | |
st.markdown("**Why does this matter?** Through echo chambers, polarization, and feedback loops, misinformation can spread from these large organizes to the public, thus arming the public with pursausive information designed to create scepticism around and/or denial of climate change, its urgency, and climate change scientists. This is especially problematic in democratic societies, where the public, to some extent, influences governmental policy decisions (brookings). Existing research suggests that misinformation directly contributes to public support of political inaction and active stalling or rejection of pro- climate change policies (1).") | |
st.markdown("How is climate change misinformation combatted now? Below are a few of the ways according to the Brookings Institute:") | |
st.markdown("1. Asking news sources to call out misinformation") | |
st.markdown("2. Teaching and encouraging media literacy among the public (how to detect fake news, critical evaluation of information provided, etc.") | |
st.markdown("3. Governments should encourage independent journalism but avoid censoring news") | |
st.markdown("4. Social media platform investment in algorithmic detection of fake news") | |
st.markdown("However, many of the proposed solutions above require adoption of behaviors. This is difficult to acheive, particularly among news organizations and social media platforms which receive monetary benefits from misinformation in the form of ad revenue from cite usage and viewership.") | |
# section 3: how can transformers help? | |
st.markdown("### How can Transformers Help?") | |
# fever dataset | |
# entailment/contradiction/neutral adoption to support/refute/n.e.i. | |
# extention to climate -climatefever | |
# section 4: The process | |
# this is the pipeline in my notes (u are here highlight) | |
st.markdown("### The Process") | |
st.markdown("Imagine: A person is curious about whether a claim they heard about climate change is true. How can transformers help validate or refute the claim?") | |
st.markdown("1. User inputs a climate claim") | |
#input_gif = Image.open('images/input_box.gif') | |
#st.image(input_gif, width=100) | |
st.markdown("2. Retrieve evidence related to input claim \ | |
- For each claim, collect N related documents. These documents are selected by finding the N documents with the highest similarity scores to the claim.") | |
st.markdown("- Current area of research: How do we keep the set of curated documents up-to-date? Validate their contents?") | |
st.markdown("3. Send (claim, evidence) pairs to a transformer model. Have the model predict whether each evidence supports, refutes, or is not relevant to the claim. (๐ YOU ARE HERE!)") | |
st.markdown("4. Report back to the user: The supporting evidence for the claim (if any), the refuting evidence for the claim (if any). If no relevant evidence is found, report that the claim cannot be supported or refuted by current evidence.") | |
# section 5: my work | |
st.markdown("### Climate Claim Fact-Checking with Transformers") | |
st.markdown("My work focuses on step 3 of the process: Training a transformer model to accurately categorize (claim, evidence) as:") | |
st.markdown("* evidence *supports* (entails) claim") | |
st.markdown("* evidence *refutes* (contradicts) claim") | |
st.markdown("* evidence *does not provide enough info to support or refute* (neutral) claim") | |
st.markdown("For this project, I fine-tuned 3 different models on the text entailment task.") | |
st.markdown("") | |
# section 6: analysis | |
# section 7: conclusion | |
# references | |
st.markdown("## References") | |
st.markdown("1. https://www.carbonbrief.org/guest-post-how-climate-change-misinformation-spreads-online") |