Spaces:
Sleeping
Sleeping
Commit
•
ddfbcd5
1
Parent(s):
17b8d53
Upload app.py
Browse files
app.py
CHANGED
@@ -462,7 +462,7 @@ def rr_detector(title_raw, abstract_raw):
|
|
462 |
#Result
|
463 |
output_image = os.path.join(dirname, 'images/no.png')
|
464 |
#Explanation
|
465 |
-
answer = "This paper cannot be considered race-related, as it does not mention at least one group AND one topic keywords in title or abstract, or it does mention group keywords but only in the last sentence of provided abstract."
|
466 |
#Details
|
467 |
if len(issue_count.keys()) == 0 and len(group_count.keys()) == 0 and len(blackball_count.keys()) == 0 :
|
468 |
data = {
|
@@ -582,10 +582,4 @@ if __name__ == "__main__":
|
|
582 |
Title: Race inequality as a concept
|
583 |
Abstract: This paper is about race inequality.
|
584 |
|
585 |
-
2. The original algo (mis)classify this as RR, why?
|
586 |
-
|
587 |
-
ID: wos_rbpe_1032
|
588 |
-
Title: residential location and the earnings of african american women
|
589 |
-
Abstract: in comparing the earnings of african american women to three reference groupswhite women african american men and white menthree principal findings emerge. first african american women residing in the suburbs are worse off than any other suburban group. second central city african american women are worse off than any other group of central city residents. third while central city residence imposes a statistically significant earnings penalty on men of both races no such penalty is found for african american or white women. therefore african american women will enjoy no earnings advantage if they move to the suburbs. this finding underscores the importance of including women in studies of residential location and the socioeconomic status of african americans. a narrow focus on male data to inform policy is clearly insufficient. © 1995 springer. all rights reserved.
|
590 |
-
|
591 |
'''
|
|
|
462 |
#Result
|
463 |
output_image = os.path.join(dirname, 'images/no.png')
|
464 |
#Explanation
|
465 |
+
answer = "This paper cannot be considered race-related, as it does not mention at least one group in the title, or it does not mention at least one group AND one topic keywords in title or abstract (excluding the last sentence), or it does mention group keywords but only in the last sentence of provided abstract."
|
466 |
#Details
|
467 |
if len(issue_count.keys()) == 0 and len(group_count.keys()) == 0 and len(blackball_count.keys()) == 0 :
|
468 |
data = {
|
|
|
582 |
Title: Race inequality as a concept
|
583 |
Abstract: This paper is about race inequality.
|
584 |
|
|
|
|
|
|
|
|
|
|
|
|
|
585 |
'''
|