File size: 818 Bytes
884a611
502c746
884a611
82d2a8a
714876f
 
884a611
75a635f
09e2f84
 
75a635f
 
73100ed
82d2a8a
502c746
884a611
 
73100ed
82d2a8a
502c746
73100ed
8f4a42c
884a611
75a635f
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from datasets import load_dataset, set_caching_enabled

set_caching_enabled(False)

# source = "MASSIVE.py"
source = "qanastek/MASSIVE"

dataset = load_dataset(source, "all")
# dataset = load_dataset(source, "ja-JP")
# dataset = load_dataset(source, "ko-KR")
# dataset = load_dataset(source, "zh-CN")
# dataset = load_dataset(source, "fr-FR")
# dataset = load_dataset(source, "fr-FR", download_mode="force_redownload")
# print(dataset)

# dataset = load_dataset(source, "en-US")
# dataset = load_dataset(source, "en-US", download_mode="force_redownload")
# , split="train"
print(dataset)

# print(dataset[0])
f = dataset["validation"][0]
print(f)

# tags = []

# for e in dataset["train"]:
#     tags.extend(
#         e["ner_tags"]
#     )

# print("#"*50)

# print(list(set(tags)))