forked from allenai/s2search
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paths2search_example.py
65 lines (59 loc) · 6.21 KB
/
s2search_example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import json
import urllib.request
from s2search.rank import S2Ranker
data_dir = './s2search_data'
papers_example = [
{
'title': 'Jumping NLP Curves: A Review of Natural Language Processing Research',
'abstract': 'Natural language processing (NLP) is a theory-motivated range of computational techniques for the automatic analysis and representation of human language. NLP research has evolved from the era of punch cards and batch processing (in which the analysis of a sentence could take up to 7 minutes) to the era of Google and the likes of it (in which millions of webpages can be processed in less than a second). This review paper draws on recent developments in NLP research to look at the past, present, and future of NLP technology in a new light. Borrowing the paradigm of jumping curves from the field of business management and marketing prediction, this survey article reinterprets the evolution of NLP research as the intersection of three overlapping curves-namely Syntactics, Semantics, and Pragmatics Curveswhich will eventually lead NLP research to evolve into natural language understanding.',
'venue': 'IEEE Computational intelligence ',
'authors': ['E Cambria', 'B White'],
'year': 2014,
'n_citations': 900,
},
{
'title': ' ',
'abstract': 'Natural language processing (NLP) is a theory-motivated range of computational techniques for the automatic analysis and representation of human language. NLP research has evolved from the era of punch cards and batch processing (in which the analysis of a sentence could take up to 7 minutes) to the era of Google and the likes of it (in which millions of webpages can be processed in less than a second). This review paper draws on recent developments in NLP research to look at the past, present, and future of NLP technology in a new light. Borrowing the paradigm of jumping curves from the field of business management and marketing prediction, this survey article reinterprets the evolution of NLP research as the intersection of three overlapping curves-namely Syntactics, Semantics, and Pragmatics Curveswhich will eventually lead NLP research to evolve into natural language understanding.',
'venue': 'IEEE Computational intelligence ',
'authors': ['E Cambria', 'B White'],
'year': 2014,
'n_citations': 900,
},
{
'title': 'Jumping NLP Curves: A Review of Natural Language Processing Research',
'abstract': ' ',
'venue': 'IEEE Computational intelligence ',
'authors': ['E Cambria', 'B White'],
'year': 2014,
'n_citations': 900,
},
{
'title': 'Jumping NLP Curves: A Review of Natural Language Processing Research',
'abstract': 'Natural language processing (NLP) is a theory-motivated range of computational techniques for the automatic analysis and representation of human language. NLP research has evolved from the era of punch cards and batch processing (in which the analysis of a sentence could take up to 7 minutes) to the era of Google and the likes of it (in which millions of webpages can be processed in less than a second). This review paper draws on recent developments in NLP research to look at the past, present, and future of NLP technology in a new light. Borrowing the paradigm of jumping curves from the field of business management and marketing prediction, this survey article reinterprets the evolution of NLP research as the intersection of three overlapping curves-namely Syntactics, Semantics, and Pragmatics Curveswhich will eventually lead NLP research to evolve into natural language understanding.',
'venue': ' ',
'authors': ['E Cambria', 'B White'],
'year': 2014,
'n_citations': 900,
},
{
'title': 'Jumping NLP Curves: A Review of Natural Language Processing Research',
'abstract': 'Natural language processing (NLP) is a theory-motivated range of computational techniques for the automatic analysis and representation of human language. NLP research has evolved from the era of punch cards and batch processing (in which the analysis of a sentence could take up to 7 minutes) to the era of Google and the likes of it (in which millions of webpages can be processed in less than a second). This review paper draws on recent developments in NLP research to look at the past, present, and future of NLP technology in a new light. Borrowing the paradigm of jumping curves from the field of business management and marketing prediction, this survey article reinterprets the evolution of NLP research as the intersection of three overlapping curves-namely Syntactics, Semantics, and Pragmatics Curveswhich will eventually lead NLP research to evolve into natural language understanding.',
'venue': 'IEEE Computational intelligence ',
'authors': [ ],
'year': 2014,
'n_citations': 900,
},
{
'title': 'Jumping NLP Curves: A Review of Natural Language Processing Research',
'abstract': 'Natural language processing (NLP) is a theory-motivated range of computational techniques for the automatic analysis and representation of human language. NLP research has evolved from the era of punch cards and batch processing (in which the analysis of a sentence could take up to 7 minutes) to the era of Google and the likes of it (in which millions of webpages can be processed in less than a second). This review paper draws on recent developments in NLP research to look at the past, present, and future of NLP technology in a new light. Borrowing the paradigm of jumping curves from the field of business management and marketing prediction, this survey article reinterprets the evolution of NLP research as the intersection of three overlapping curves-namely Syntactics, Semantics, and Pragmatics Curveswhich will eventually lead NLP research to evolve into natural language understanding.',
'venue': 'IEEE Computational intelligence ',
'authors': ['E Cambria', 'B White'],
'year': 2014,
'n_citations': 0,
}
]
def S2_Rank(related_keywords, paper_dict_list, file=data_dir):
s2ranker = S2Ranker(file)
score = s2ranker.score(related_keywords, paper_dict_list)
return score
print(S2_Rank('NLP', papers_example, data_dir))