Datasets:
vr
commited on
Commit
·
0316b77
1
Parent(s):
61a5798
little changes
Browse files
swiss_citation_extraction.py
CHANGED
@@ -74,11 +74,11 @@ class SwissCourtViewGeneration(datasets.GeneratorBasedBuilder):
|
|
74 |
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
75 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
76 |
BUILDER_CONFIGS = [
|
77 |
-
datasets.BuilderConfig(name="
|
78 |
-
datasets.BuilderConfig(name="
|
79 |
]
|
80 |
|
81 |
-
DEFAULT_CONFIG_NAME = "
|
82 |
|
83 |
def _info(self):
|
84 |
if self.config.name == "original" or self.config.name == "with_rules": # This is the name of the configuration selected in BUILDER_CONFIGS above
|
|
|
74 |
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
75 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
76 |
BUILDER_CONFIGS = [
|
77 |
+
datasets.BuilderConfig(name="original", version=VERSION, description="This part of my dataset covers the whole dataset"),
|
78 |
+
datasets.BuilderConfig(name="with_rules", version=VERSION, description="This part of my dataset covers a subset containing only cases with origin data")
|
79 |
]
|
80 |
|
81 |
+
DEFAULT_CONFIG_NAME = "original" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
82 |
|
83 |
def _info(self):
|
84 |
if self.config.name == "original" or self.config.name == "with_rules": # This is the name of the configuration selected in BUILDER_CONFIGS above
|