Datasets:

Languages:
English
License:
albertvillanova HF staff commited on
Commit
974437b
1 Parent(s): e4736cd

Update loading script

Browse files
Files changed (1) hide show
  1. linnaeus.py +3 -2
linnaeus.py CHANGED
@@ -42,7 +42,8 @@ A novel corpus of full-text documents manually annotated for species mentions.
42
  """
43
 
44
  _HOMEPAGE = "http://linnaeus.sourceforge.net/"
45
- _URL = "https://drive.google.com/u/0/uc?id=1OletxmPYNkz2ltOr9pyT0b0iBtUWxslh&export=download"
 
46
  _BIOBERT_NER_DATASET_DIRECTORY = "linnaeus"
47
  _TRAINING_FILE = "train.tsv"
48
  _DEV_FILE = "devel.tsv"
@@ -130,7 +131,7 @@ class Linnaeus(datasets.GeneratorBasedBuilder):
130
  # tokens are tab separated
131
  splits = line.split("\t")
132
  tokens.append(splits[0])
133
- ner_tags.append(splits[1].rstrip())
134
  # last example
135
  yield guid, {
136
  "id": str(guid),
 
42
  """
43
 
44
  _HOMEPAGE = "http://linnaeus.sourceforge.net/"
45
+ # Source data: https://github.com/cambridgeltl/MTL-Bioinformatics-2016/tree/master/data/linnaeus-IOB
46
+ _URL = "data/linnaeus.zip"
47
  _BIOBERT_NER_DATASET_DIRECTORY = "linnaeus"
48
  _TRAINING_FILE = "train.tsv"
49
  _DEV_FILE = "devel.tsv"
 
131
  # tokens are tab separated
132
  splits = line.split("\t")
133
  tokens.append(splits[0])
134
+ ner_tags.append(splits[1].split("-")[0])
135
  # last example
136
  yield guid, {
137
  "id": str(guid),