tkon3 commited on
Commit
ecfa25a
1 Parent(s): bd19a74
Files changed (2) hide show
  1. QR-AN.py +2 -5
  2. rubriques.txt +0 -3
QR-AN.py CHANGED
@@ -14,7 +14,7 @@ _DESCRIPTION = """\
14
  It contains 188 unbalanced classes, 80k questions-answers divided into 3 splits: train (60k), val (10k) and test (10k).
15
  """
16
 
17
- """
18
  _LABELS = [
19
  'administration', 'agriculture', 'agroalimentaire', 'aménagement du territoire', 'anciens combattants et victimes de guerre',
20
  'animaux', 'aquaculture et pêche professionnelle', 'architecture', 'archives et bibliothèques', 'armes', 'arts et spectacles',
@@ -55,7 +55,7 @@ _LABELS = [
55
  'transports ferroviaires', 'transports par eau', 'transports routiers', 'transports urbains', 'travail', 'TVA',
56
  'Union européenne', 'urbanisme', 'ventes et échanges', 'voirie'
57
  ]
58
- """
59
 
60
  class QRANConfig(datasets.BuilderConfig):
61
  """BuilderConfig for QR-AN."""
@@ -72,9 +72,6 @@ class QRANDataset(datasets.GeneratorBasedBuilder):
72
  """QR-AN Dataset: Topic dataset on french Parliament questions-answers."""
73
 
74
  _DOWNLOAD_URL = "https://huggingface.co/datasets/cassandra-themis/QR-AN/resolve/main/"
75
- label_path = datasets.DownloadManager.download_and_extract("https://huggingface.co/datasets/cassandra-themis/QR-AN/resolve/main/rubriques.txt")
76
- LABELS = open(label_path, "r", encoding="utf-8").read().split("\n")
77
- print(LABELS)
78
  _TRAIN_FILE = "train_data.txt"
79
  _VAL_FILE = "val_data.txt"
80
  _TEST_FILE = "test_data.txt"
 
14
  It contains 188 unbalanced classes, 80k questions-answers divided into 3 splits: train (60k), val (10k) and test (10k).
15
  """
16
 
17
+
18
  _LABELS = [
19
  'administration', 'agriculture', 'agroalimentaire', 'aménagement du territoire', 'anciens combattants et victimes de guerre',
20
  'animaux', 'aquaculture et pêche professionnelle', 'architecture', 'archives et bibliothèques', 'armes', 'arts et spectacles',
 
55
  'transports ferroviaires', 'transports par eau', 'transports routiers', 'transports urbains', 'travail', 'TVA',
56
  'Union européenne', 'urbanisme', 'ventes et échanges', 'voirie'
57
  ]
58
+
59
 
60
  class QRANConfig(datasets.BuilderConfig):
61
  """BuilderConfig for QR-AN."""
 
72
  """QR-AN Dataset: Topic dataset on french Parliament questions-answers."""
73
 
74
  _DOWNLOAD_URL = "https://huggingface.co/datasets/cassandra-themis/QR-AN/resolve/main/"
 
 
 
75
  _TRAIN_FILE = "train_data.txt"
76
  _VAL_FILE = "val_data.txt"
77
  _TEST_FILE = "test_data.txt"
rubriques.txt DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6ab9f70d7f22e54727b878986a55e3ea38f62179caf376c754a0c270e259ca65
3
- size 3823