NealCaren commited on
Commit
d9f8ad9
·
1 Parent(s): 72734eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -24,16 +24,16 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
24
  import pandas as pd
25
  st.title('Sociology Paragraph Search')
26
 
27
- st.write('This project is a work-in-progress that searches through articles recently published in a few sociology journals and retrieves the most relevant paragraphs.')
28
 
29
  st.markdown('''Notes:
30
- * To get the best results, search like you are using Google. My best luck comes from phrases like "social movements and public opinion", "inequality in latin america", "race color skin tone measurement", "audit study experiment gender", "crenshaw intersectionality", or "logistic regression or linear probability model". You can also use questions like "what is a topic model?" or "What is the dual process model?"
31
- * The dataset currently includes sociology articles from Social Forces, Social Problems, Sociology of Race and Ethnicity, Gender and Society, Socius, JHSB, and the American Sociological Review published in the last five years, totaling approximately 100,000 paragraphs from 2,000 articles.
32
  * The most relevant paragraph to your search is returned first, along with up to four other related paragraphs from that article.
33
  * The most relevant sentence within each paragraph, as determined by math, is bolded.
34
  * Behind the scenes, the semantic search uses [text embeddings](https://www.sbert.net) with a [retrieve & re-rank](https://colab.research.google.com/github/UKPLab/sentence-transformers/blob/master/examples/applications/retrieve_rerank/retrieve_rerank_simple_wikipedia.ipynb) process to find the best matches.
35
  * The first search can take up to 30 seconds as the files load. After that, it's quicker to respond.
36
- * Let [me](mailto:neal.caren@unc.edu) know what you think.
37
  ''')
38
 
39
 
 
24
  import pandas as pd
25
  st.title('Sociology Paragraph Search')
26
 
27
+ st.write('This project is a work-in-progress that searches the text of recently-published articles from a few sociology journals and retrieves the most relevant paragraphs.')
28
 
29
  st.markdown('''Notes:
30
+ * To get the best results, search like you are using Google. My best luck comes from phrases like "social movements and public opinion", "inequality in latin america", "race color skin tone measurement", "audit study experiment gender", "Crenshaw intersectionality", or "logistic regression or linear probability model". You can also use questions like "What is a topic model?" or "How did Weber define bureaucracy?"
31
+ * The dataset currently includes articles published in the last five years in Social Forces, Social Problems, Sociology of Race and Ethnicity, Gender and Society, Socius, JHSB, Annual Review of Sociology, and the American Sociological Review, totaling more than 100,000 paragraphs from a few thousand articles.
32
  * The most relevant paragraph to your search is returned first, along with up to four other related paragraphs from that article.
33
  * The most relevant sentence within each paragraph, as determined by math, is bolded.
34
  * Behind the scenes, the semantic search uses [text embeddings](https://www.sbert.net) with a [retrieve & re-rank](https://colab.research.google.com/github/UKPLab/sentence-transformers/blob/master/examples/applications/retrieve_rerank/retrieve_rerank_simple_wikipedia.ipynb) process to find the best matches.
35
  * The first search can take up to 30 seconds as the files load. After that, it's quicker to respond.
36
+ * Let [me](mailto:neal.caren@unc.edu) know what you think or it looks broken.
37
  ''')
38
 
39