PBusienei commited on
Commit
6d919a4
1 Parent(s): 3a4738e

Added Description

Browse files
Files changed (1) hide show
  1. app.py +69 -2
app.py CHANGED
@@ -22,8 +22,75 @@ from urllib.error import URLError
22
  # Load document embeddings
23
 
24
  # set up title and sidebar
25
- st.title(" Your top 3 Important Sessions")
26
- st.markdown("This application is a dashboard for displaying your top 3 Sessions at the Nashville summit")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
28
  doc_emb = np.loadtxt("abstract-embed.txt", dtype=float)
29
 
 
22
  # Load document embeddings
23
 
24
  # set up title and sidebar
25
+ st.title (" Nashville Analytics Summit Conference Helper")# (" Your top 3 Important Sessions")
26
+
27
+ st.markdown("**Problem**🤔: Since its inception in 2013, Nashville Analytics Summit has seen a growth of over 488%. The Summit prides its itself as the fastest growing locally grown tech events in the south region. With an increasing number of participants and dozens of talks covering a myriad of topics, there is a need to tailor participants needs to their interests")
28
+
29
+ st.markdown("**Solution**💡: Develop an application in which users can input the description of areas of interest and app returns the top three Sessions matching the description requested.")
30
+
31
+ st.markdown("** Approach**🔑:")
32
+ st.markdown("* For the approach, I used a transformer model, multi-qa-MiniLM-L6-cos-v1, that uses sentence similarity to match the description of the event and the input description.")
33
+ st.markdown("* The dataset used is Nashville Analytics Summit descriptions of the presentations, which include the Unique ID, Name of presenter, Description of presentation, Activity Code, Start Time, End Time, Location Name")
34
+
35
+ st.markdown("* Given a {claim, evidence} pair, determine whether the climate claim is supported or refuted (or neither) by the evidence")
36
+
37
+ st.markdown("---")
38
+
39
+ st.markdown("## The Details")
40
+
41
+ # section 1: the context, problem; how to address
42
+ st.markdown("### Problem")
43
+ st.markdown("With the growth of the Nashville Analytics Summit every year, there have been an increase in the number participants, the number of talks/topics have exponentially increased over time covering a myriad of current issues and developments. This has made it challenging for the participants to easily navigate the event and attend the sessions of interest before reading through the sessions descriptions. Struggling finding the Session that Matches your personal interests? Transformers to the rescue!!!.")
44
+
45
+ dificult_reading = Image.open('images/dificult_reading.png')
46
+ st.image(dificult_reading, caption='Reading sessions descriptions. (1)')
47
+
48
+
49
+
50
+
51
+ # section 2: how can transformers help?
52
+ st.markdown("### How can Transformers Help?💡")
53
+
54
+ st.markdown("**Sentence Similarity**")
55
+ #st.markdown("* FEVER, or Fact Extraction and VERification, was introduced in 2018 as the first dataset containing {fact, evdience, entailment_label} information. They extracted altering sentences from Wikipedia and had annotators report the relationship between the setences: entailment, contradition, not enough information.")
56
+ #st.markdown("* Since then, other researchers have expanded on this area in different domains")
57
+ #st.markdown("* Here, we use Climate FEVER (3), a similar dataset developed and annotated by ")
58
+
59
+ #st.markdown("**Fact Verification / Fact-Checking**")
60
+ #st.markdown("* This is simply an extenstion of the textual entailment task")
61
+ #st.markdown("* Given two sentences, sent1 and sent2, determine the relationship: entail, contradict, neutral")
62
+ #st.markdown("* With fact verification, we can think of the sentences as claim and evidence and labels as support, refute, or not enough information to refute or support.")
63
+
64
+ # section 4: The process
65
+ # this is the pipeline in my notes (u are here highlight)
66
+ #st.markdown("### The Process 🔑")
67
+
68
+ #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?")
69
+
70
+ #st.markdown("1. User inputs a climate claim")
71
+
72
+ st.markdown("2. Retrieve evidence related to input claim \
73
+ - For each claim, collect N related documents. These documents are selected by finding the N documents with the highest similarity scores to the claim. A current area of research: How do we keep the set of curated documents up-to-date? Validate their contents?")
74
+
75
+ #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!)")
76
+
77
+ #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.")
78
+
79
+
80
+ # section 5: my work
81
+ #st.markdown("## Climate Claim Fact-Checking with Transformers")
82
+
83
+ #st.markdown("My work focuses on step 3 of the process: Training a transformer model to accurately categorize (claim, evidence) as:")
84
+ #st.markdown("* evidence *supports* (entails) claim")
85
+ #st.markdown("* evidence *refutes* (contradicts) claim")
86
+ #st.markdown("* evidence *does not provide enough info to support or refute* (neutral) claim")
87
+ #st.markdown("For this project, I fine-tune ClimateBERT (4) on the text entailment task")
88
+
89
+ ## EXAMPLE ###################################################################################################################
90
+
91
+ st.markdown("## Try it out!")
92
+
93
+ st.markdown("This application is a dashboard for displaying your top 3 matching Sessions at the Nashville summit")
94
 
95
  doc_emb = np.loadtxt("abstract-embed.txt", dtype=float)
96