Datasets:
Tasks:
Text Generation
Formats:
parquet
Sub-tasks:
language-modeling
Languages:
Danish
Size:
1M - 10M
License:
Commit
·
25445ec
1
Parent(s):
84883d8
lint
Browse files
data/ai-aktindsigt/create.py
CHANGED
@@ -17,6 +17,7 @@ from datasets import Dataset, load_dataset
|
|
17 |
|
18 |
source = "ai-aktindsigt"
|
19 |
|
|
|
20 |
def convert_sample(example):
|
21 |
# {'text': 'Vallensbæk Stationstorv 100 2665 Vallensbæk Strand Telefon: +45 4797 4000',
|
22 |
# 'id': '0_03fe7662f6d37df0ffbf5013907414f935350db9931043891a95ed830965a507a7bcb4df93741429bdfa4958cf25f6c273aa73146f2be80948f767eb5fa04645',
|
|
|
17 |
|
18 |
source = "ai-aktindsigt"
|
19 |
|
20 |
+
|
21 |
def convert_sample(example):
|
22 |
# {'text': 'Vallensbæk Stationstorv 100 2665 Vallensbæk Strand Telefon: +45 4797 4000',
|
23 |
# 'id': '0_03fe7662f6d37df0ffbf5013907414f935350db9931043891a95ed830965a507a7bcb4df93741429bdfa4958cf25f6c273aa73146f2be80948f767eb5fa04645',
|
src/update_descriptive_statistics.py
CHANGED
@@ -32,6 +32,7 @@ repo_path = Path(__file__).parent.parent
|
|
32 |
tokenizer_name = "AI-Sweden-Models/Llama-3-8B-instruct"
|
33 |
tokenizer = AutoTokenizer.from_pretrained(tokenizer_name, use_fast=True)
|
34 |
|
|
|
35 |
def human_readable_large_int(value: int) -> str:
|
36 |
thresholds = [
|
37 |
(1_000_000_000, "B"),
|
@@ -249,7 +250,7 @@ def update_dataset(
|
|
249 |
add_desc_statitics(markdown_path, ds, desc_stats_path, num_proc=num_proc)
|
250 |
add_sample(markdown_path, ds)
|
251 |
add_descriptive_statistics_plots(markdown_path, ds)
|
252 |
-
|
253 |
|
254 |
def create_parser():
|
255 |
parser = argparse.ArgumentParser(
|
|
|
32 |
tokenizer_name = "AI-Sweden-Models/Llama-3-8B-instruct"
|
33 |
tokenizer = AutoTokenizer.from_pretrained(tokenizer_name, use_fast=True)
|
34 |
|
35 |
+
|
36 |
def human_readable_large_int(value: int) -> str:
|
37 |
thresholds = [
|
38 |
(1_000_000_000, "B"),
|
|
|
250 |
add_desc_statitics(markdown_path, ds, desc_stats_path, num_proc=num_proc)
|
251 |
add_sample(markdown_path, ds)
|
252 |
add_descriptive_statistics_plots(markdown_path, ds)
|
253 |
+
|
254 |
|
255 |
def create_parser():
|
256 |
parser = argparse.ArgumentParser(
|