Datasets:

Modalities:
Text
Languages:
Icelandic
Libraries:
Datasets
License:
vesteinn commited on
Commit
a0ac7d9
1 Parent(s): eaf89e1

Simplified buider config

Browse files
Files changed (1) hide show
  1. icelandic-error-corpus-IceEC.py +6 -13
icelandic-error-corpus-IceEC.py CHANGED
@@ -1,8 +1,3 @@
1
- import json
2
-
3
- import datasets
4
-
5
-
6
  # collected from errorCodes.tsv -- see https://github.com/antonkarl/iceErrorCorpus
7
  ERROR_INFORMATION = {'dem4noun': {'category': 'coherence',
8
  'subcategory': 'accuracy',
@@ -774,19 +769,17 @@ Sentences within texts in the student essays had to be shuffled due to the licen
774
  """
775
  _CITATION = "Anton Karl Ingason, Lilja Bj枚rk Stef谩nsd贸ttir, 脼贸runn Arnard贸ttir, and Xindan Xu. 2021. The Icelandic Error Corpus (IceEC). Version 1.1. (https://github.com/antonkarl/iceErrorCorpus)"
776
 
 
777
 
 
 
 
 
 
778
  class IceECConfig(datasets.BuilderConfig):
779
  """BuilderConfig for IceEC."""
780
-
781
  level: str = None
782
 
783
- def __init__(self, **kwargs):
784
- """BuilderConfig for IceEC.
785
- Args:
786
- **kwargs: keyword arguments forwarded to super.
787
- """
788
- super(IceECConfig, self).__init__(**kwargs)
789
-
790
 
791
  _URL = "https://huggingface.co/datasets/vesteinn/icelandic-error-corpus-IceEC/tree/main"
792
  _URLS = {
 
 
 
 
 
 
1
  # collected from errorCodes.tsv -- see https://github.com/antonkarl/iceErrorCorpus
2
  ERROR_INFORMATION = {'dem4noun': {'category': 'coherence',
3
  'subcategory': 'accuracy',
 
769
  """
770
  _CITATION = "Anton Karl Ingason, Lilja Bj枚rk Stef谩nsd贸ttir, 脼贸runn Arnard贸ttir, and Xindan Xu. 2021. The Icelandic Error Corpus (IceEC). Version 1.1. (https://github.com/antonkarl/iceErrorCorpus)"
771
 
772
+ import json
773
 
774
+ import datasets
775
+ from dataclasses import dataclass
776
+
777
+
778
+ @dataclass
779
  class IceECConfig(datasets.BuilderConfig):
780
  """BuilderConfig for IceEC."""
 
781
  level: str = None
782
 
 
 
 
 
 
 
 
783
 
784
  _URL = "https://huggingface.co/datasets/vesteinn/icelandic-error-corpus-IceEC/tree/main"
785
  _URLS = {