Matías Rojas commited on
Commit
e112f5a
1 Parent(s): d71eb6c

files added

Browse files
Files changed (1) hide show
  1. finding.py +13 -13
finding.py CHANGED
@@ -13,28 +13,28 @@ _DESCRIPTION = """\
13
 
14
  """
15
 
16
- _URL = "https://huggingface.co/datasets/mrojas/family/resolve/main/data/"
17
- _TRAINING_FILE = "Family_Member_ner_train.conll"
18
- _DEV_FILE = "Family_Member_dev.conll"
19
- _TEST_FILE = "Family_Member_test.conll"
20
 
21
 
22
- class FamilyConfig(datasets.BuilderConfig):
23
- """BuilderConfig for Family"""
24
 
25
  def __init__(self, **kwargs):
26
- """BuilderConfig for Family.
27
  Args:
28
  **kwargs: keyword arguments forwarded to super.
29
  """
30
- super(FamilyConfig, self).__init__(**kwargs)
31
 
32
 
33
- class Family(datasets.GeneratorBasedBuilder):
34
- """Family dataset."""
35
 
36
  BUILDER_CONFIGS = [
37
- FamilyConfig(name="family", version=datasets.Version("1.0.0"), description="Family dataset"),
38
  ]
39
 
40
  def _info(self):
@@ -47,8 +47,8 @@ class Family(datasets.GeneratorBasedBuilder):
47
  datasets.features.ClassLabel(
48
  names=[
49
  "O",
50
- "B-Family_Member",
51
- "I-Family_Member",
52
  ]
53
  )
54
  ),
 
13
 
14
  """
15
 
16
+ _URL = "https://huggingface.co/datasets/mrojas/finding/resolve/main/data/"
17
+ _TRAINING_FILE = "Finding_train.conll"
18
+ _DEV_FILE = "Finding_dev.conll"
19
+ _TEST_FILE = "Finding_test.conll"
20
 
21
 
22
+ class FindingConfig(datasets.BuilderConfig):
23
+ """BuilderConfig for Finding"""
24
 
25
  def __init__(self, **kwargs):
26
+ """BuilderConfig for Finding.
27
  Args:
28
  **kwargs: keyword arguments forwarded to super.
29
  """
30
+ super(FindingConfig, self).__init__(**kwargs)
31
 
32
 
33
+ class Finding(datasets.GeneratorBasedBuilder):
34
+ """Finding dataset."""
35
 
36
  BUILDER_CONFIGS = [
37
+ FindingConfig(name="finding", version=datasets.Version("1.0.0"), description="Finding dataset"),
38
  ]
39
 
40
  def _info(self):
 
47
  datasets.features.ClassLabel(
48
  names=[
49
  "O",
50
+ "B-Finding",
51
+ "I-Finding",
52
  ]
53
  )
54
  ),