Update MANTRAGSC.py
Browse files- MANTRAGSC.py +3 -3
MANTRAGSC.py
CHANGED
|
@@ -118,11 +118,11 @@ class MANTRAGSC(datasets.GeneratorBasedBuilder):
|
|
| 118 |
|
| 119 |
def _info(self):
|
| 120 |
|
| 121 |
-
if self.config.name.find("emea") != 1:
|
| 122 |
names = ['O', 'DISO', 'CHEM|PHEN', 'DEVI', 'PHEN', 'PROC', 'OBJC', 'ANAT', 'LIVB', 'CHEM', 'PHYS']
|
| 123 |
-
elif self.config.name.find("medline") != 1:
|
| 124 |
names = ['O', 'DISO', 'GEOG', 'DEVI', 'Manufactured Object', 'PHEN', 'PROC', 'Research Device', 'OBJC', 'Mental or Behavioral Dysfunction', 'Research Activity', 'ANAT', 'LIVB', 'CHEM', 'PHYS']
|
| 125 |
-
elif self.config.name.find("patents") != 1:
|
| 126 |
names = ['O', 'PROC', 'DISO', 'LIVB', 'PHYS', 'PHEN', 'ANAT', 'OBJC', 'Amino Acid, Peptide, or Protein|Enzyme|Receptor', 'DEVI', 'CHEM']
|
| 127 |
|
| 128 |
features = datasets.Features(
|
|
|
|
| 118 |
|
| 119 |
def _info(self):
|
| 120 |
|
| 121 |
+
if self.config.name.find("emea") != -1:
|
| 122 |
names = ['O', 'DISO', 'CHEM|PHEN', 'DEVI', 'PHEN', 'PROC', 'OBJC', 'ANAT', 'LIVB', 'CHEM', 'PHYS']
|
| 123 |
+
elif self.config.name.find("medline") != -1:
|
| 124 |
names = ['O', 'DISO', 'GEOG', 'DEVI', 'Manufactured Object', 'PHEN', 'PROC', 'Research Device', 'OBJC', 'Mental or Behavioral Dysfunction', 'Research Activity', 'ANAT', 'LIVB', 'CHEM', 'PHYS']
|
| 125 |
+
elif self.config.name.find("patents") != -1:
|
| 126 |
names = ['O', 'PROC', 'DISO', 'LIVB', 'PHYS', 'PHEN', 'ANAT', 'OBJC', 'Amino Acid, Peptide, or Protein|Enzyme|Receptor', 'DEVI', 'CHEM']
|
| 127 |
|
| 128 |
features = datasets.Features(
|