paniniDot commited on
Commit
7204bfa
1 Parent(s): 95ccc9f

Update sci_lay.py

Browse files
Files changed (1) hide show
  1. sci_lay.py +7 -4
sci_lay.py CHANGED
@@ -14,10 +14,11 @@ _CITATION = """
14
  """
15
 
16
  _DESCRIPTION = """
17
- SCILAY comprises 46,486 instances, each representing a scientific article in the biomedical domain.
18
  Each instance in the dataset includes the following components:
19
  - plain_text: Containing a plain language summary of the scientific article. This section is written in a simple and accessible language, and is intended to be understandable by a wide audience.
20
  - technical_text: This section contains the abstract of the scientific article. It provides a detailed and technical description of the research conducted in the article.
 
21
  In addition to the textual content, each instance is associated with the following metadata:
22
  - Keywords: Keywords that capture the main topics and themes addressed in the article.
23
  - Journal: The journal in which the article is published, providing context about the source of the research.
@@ -34,14 +35,14 @@ _DOI = "doi"
34
  _PMCID = "pmcid"
35
  _SUMMARY = "plain_text"
36
  _ABSTRACT = "technical_text"
 
37
  _JOURNAL = "journal"
38
  _TOPICS = "topics"
39
  _KEYWORDS = "keywords"
40
 
41
  _JOURNALS = {
42
  "NC": "Nature Communications",
43
- "A": "Animals: an Open Access Journal from MDPI",
44
- "NIHR": "NIHR Journals Library",
45
  "PLGEN": "PLoS Genetics",
46
  "PLPAT": "PLoS Pathogens",
47
  "PLCB": "PLoS Computational Biology",
@@ -109,11 +110,12 @@ class SciLay(datasets.GeneratorBasedBuilder):
109
  _PMCID: datasets.Value("string"),
110
  _SUMMARY: datasets.Value("string"),
111
  _ABSTRACT: datasets.Value("string"),
 
112
  _JOURNAL: datasets.Value("string"),
113
  _TOPICS: datasets.Sequence(datasets.Value("string")),
114
  _KEYWORDS: datasets.Sequence(datasets.Value("string"))
115
  }),
116
- supervised_keys=(_ABSTRACT, _SUMMARY),
117
  homepage=_HOMEPAGE,
118
  license=_LICENSE,
119
  citation=_CITATION,
@@ -153,6 +155,7 @@ class SciLay(datasets.GeneratorBasedBuilder):
153
  _PMCID: json_obj[_PMCID],
154
  _SUMMARY: json_obj[_SUMMARY],
155
  _ABSTRACT: json_obj[_ABSTRACT],
 
156
  _JOURNAL: json_obj[_JOURNAL],
157
  _TOPICS: json_obj[_TOPICS],
158
  _KEYWORDS: json_obj[_KEYWORDS]
 
14
  """
15
 
16
  _DESCRIPTION = """
17
+ SCILAY comprises 43,790 instances, each representing a scientific article in the biomedical domain.
18
  Each instance in the dataset includes the following components:
19
  - plain_text: Containing a plain language summary of the scientific article. This section is written in a simple and accessible language, and is intended to be understandable by a wide audience.
20
  - technical_text: This section contains the abstract of the scientific article. It provides a detailed and technical description of the research conducted in the article.
21
+ - full_text: This section contains the complete article of the scientific research
22
  In addition to the textual content, each instance is associated with the following metadata:
23
  - Keywords: Keywords that capture the main topics and themes addressed in the article.
24
  - Journal: The journal in which the article is published, providing context about the source of the research.
 
35
  _PMCID = "pmcid"
36
  _SUMMARY = "plain_text"
37
  _ABSTRACT = "technical_text"
38
+ _FULL_TEXT = "full_text"
39
  _JOURNAL = "journal"
40
  _TOPICS = "topics"
41
  _KEYWORDS = "keywords"
42
 
43
  _JOURNALS = {
44
  "NC": "Nature Communications",
45
+ "A": "Animals : an Open Access Journal from MDPI",
 
46
  "PLGEN": "PLoS Genetics",
47
  "PLPAT": "PLoS Pathogens",
48
  "PLCB": "PLoS Computational Biology",
 
110
  _PMCID: datasets.Value("string"),
111
  _SUMMARY: datasets.Value("string"),
112
  _ABSTRACT: datasets.Value("string"),
113
+ _FULL_TEXT: datasets.Value("string"),
114
  _JOURNAL: datasets.Value("string"),
115
  _TOPICS: datasets.Sequence(datasets.Value("string")),
116
  _KEYWORDS: datasets.Sequence(datasets.Value("string"))
117
  }),
118
+ supervised_keys=(_FULL_TEXT, _SUMMARY),
119
  homepage=_HOMEPAGE,
120
  license=_LICENSE,
121
  citation=_CITATION,
 
155
  _PMCID: json_obj[_PMCID],
156
  _SUMMARY: json_obj[_SUMMARY],
157
  _ABSTRACT: json_obj[_ABSTRACT],
158
+ _FULL_TEXT: json_obj[_FULL_TEXT],
159
  _JOURNAL: json_obj[_JOURNAL],
160
  _TOPICS: json_obj[_TOPICS],
161
  _KEYWORDS: json_obj[_KEYWORDS]