KennethEnevoldsen commited on
Commit
b578ecd
·
unverified ·
1 Parent(s): 44fce3a

Added version to bump version and readme table

Browse files
Files changed (6) hide show
  1. README.md +30 -26
  2. docs/logo.key +0 -0
  3. pyproject.toml +14 -11
  4. src/bump_version.py +51 -9
  5. test_results.log +27 -2
  6. uv.lock +32 -25
README.md CHANGED
@@ -126,13 +126,17 @@ https://github.com/huggingface/datasets/blob/main/templates/README_guide.md
126
 
127
  # 🧨 Danish Dynaword
128
 
 
 
129
  | | |
130
  | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
 
131
  | **Language** | dan, dansk, Danish |
132
  | **License** | Permissible, See the respective dataset |
133
  | **Models** | For model trained used this data see [danish-foundation-models](https://huggingface.co/danish-foundation-models) |
134
  | **Contact** | If you have question about this project please create an issue [here](https://huggingface.co/datasets/danish-foundation-models/danish-dynaword/discussions) |
135
 
 
136
 
137
  ## Table of Contents
138
  - [🧨 Danish Dynaword](#-danish-dynaword)
@@ -267,32 +271,32 @@ This data generally contains no annotation besides the metadata attached to each
267
  Below follows a brief overview of the sources in the corpus along with their individual license.
268
 
269
  <!-- START-MAIN TABLE -->
270
- | Source | Description | N. Tokens | License |
271
- |:--------------------|:-----------------------------------------------------------------------------------------------------------------------------|:------------|:-----------------------|
272
- | [lexdk] | Permissible use articles from [lex.dk](https://lex.dk) | 5.69M | [CC-BY-SA 4.0] |
273
- | [opensubtitles] | Danish subsection of [OpenSubtitles](https://opus.nlpl.eu/OpenSubtitles/corpus/version/OpenSubtitles) | 271.60M | [CC-0] |
274
- | [retsinformationdk] | [retsinformation.dk](https://www.retsinformation.dk) (legal-information.dk) the official legal information system of Denmark | 516.54M | [Danish Copyright Law] |
275
- | [ep] | The Danish subsection of [Europarl](https://aclanthology.org/2005.mtsummit-papers.11/) | 100.89M | [CC-0] |
276
- | [ft] | Records from all meetings of The Danish parliament (Folketinget) in the parliament hall | 114.09M | [CC-0] |
277
- | [wikisource] | The Danish subsection of [Wikisource](https://en.wikisource.org/wiki/Main_Page) | 5.34M | [CC-0] |
278
- | [spont] | Conversational samples collected as a part of research projects at Aarhus University | 1.56M | [CC-0] |
279
- | [tv2r] | Contemporary Danish newswire articles published between 2010 and 2019 | 21.67M | [CC-BY-SA 4.0] |
280
- | [adl] | Danish literature from 1700-2023 from the Archive for Danish Literature (ADL) | 58.49M | [CC-0] |
281
- | [hest] | Samples from the Danish debate forum www.heste-nettet.dk | 389.33M | [CC-0] |
282
- | [skat] | Skat is the Danish tax authority. This dataset contains content from its website skat.dk | 122.12M | [CC-0] |
283
- | [dannet] | [DanNet](https://cst.ku.dk/projekter/dannet) is a Danish WordNet | 1.52M | [DanNet 1.0 License] |
284
- | [retspraksis] | Case law or judical practice in Denmark derived from [Retspraksis](https://da.wikipedia.org/wiki/Retspraksis) | 57.08M | [CC-0] |
285
- | [wikibooks] | The Danish Subsection of [Wikibooks](https://www.wikibooks.org) | 6.24M | [CC-0] |
286
- | [jvj] | The works of the Danish author and poet, [Johannes V. Jensen](https://da.wikipedia.org/wiki/Johannes_V._Jensen) | 3.55M | [CC-BY-SA 4.0] |
287
- | [gutenberg] | The Danish subsection from Project [Gutenberg](https://www.gutenberg.org) | 6.76M | [Gutenberg License] |
288
- | [botxt] | The Bornholmsk Ordbog Dictionary Projec | 847.97K | [CC-0] |
289
- | [depbank] | The Danish subsection of the [Universal Dependencies Treebank](https://github.com/UniversalDependencies/UD_Danish-DDT) | 185.45K | [CC-BY-SA 4.0] |
290
- | [naat] | Danish speeches from 1930-2022 | 286.68K | [CC-0] |
291
- | [synne] | Dataset collected from [synnejysk forening's website](https://www.synnejysk.dk), covering the Danish dialect sønderjysk | 52.51K | [CC-0] |
292
- | [wiki] | The Danish subsection of [wikipedia](https://en.wikipedia.org/wiki/Main_Page) | 122.00M | [CC-0] |
293
- | [nordjyllandnews] | Articles from the Danish Newspaper [TV2 Nord](https://www.tv2nord.dk) | 37.91M | [CC-0] |
294
- | [relig] | Danish religious text from the 1700-2022 | 1.24M | [CC-0] |
295
- | **Total** | | 1.84B | |
296
 
297
  [lexdk]: data/lexdk/lexdk.md
298
  [opensubtitles]: data/opensubtitles/opensubtitles.md
 
126
 
127
  # 🧨 Danish Dynaword
128
 
129
+
130
+ <!-- START README TABLE -->
131
  | | |
132
  | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
133
+ | **Version** | 1.0.7 |
134
  | **Language** | dan, dansk, Danish |
135
  | **License** | Permissible, See the respective dataset |
136
  | **Models** | For model trained used this data see [danish-foundation-models](https://huggingface.co/danish-foundation-models) |
137
  | **Contact** | If you have question about this project please create an issue [here](https://huggingface.co/datasets/danish-foundation-models/danish-dynaword/discussions) |
138
 
139
+ <!-- END README TABLE -->
140
 
141
  ## Table of Contents
142
  - [🧨 Danish Dynaword](#-danish-dynaword)
 
271
  Below follows a brief overview of the sources in the corpus along with their individual license.
272
 
273
  <!-- START-MAIN TABLE -->
274
+ | Source | Description | N. Tokens | License |
275
+ | :------------------ | :--------------------------------------------------------------------------------------------------------------------------- | :-------- | :--------------------- |
276
+ | [lexdk] | Permissible use articles from [lex.dk](https://lex.dk) | 5.69M | [CC-BY-SA 4.0] |
277
+ | [opensubtitles] | Danish subsection of [OpenSubtitles](https://opus.nlpl.eu/OpenSubtitles/corpus/version/OpenSubtitles) | 271.60M | [CC-0] |
278
+ | [retsinformationdk] | [retsinformation.dk](https://www.retsinformation.dk) (legal-information.dk) the official legal information system of Denmark | 516.54M | [Danish Copyright Law] |
279
+ | [ep] | The Danish subsection of [Europarl](https://aclanthology.org/2005.mtsummit-papers.11/) | 100.89M | [CC-0] |
280
+ | [ft] | Records from all meetings of The Danish parliament (Folketinget) in the parliament hall | 114.09M | [CC-0] |
281
+ | [wikisource] | The Danish subsection of [Wikisource](https://en.wikisource.org/wiki/Main_Page) | 5.34M | [CC-0] |
282
+ | [spont] | Conversational samples collected as a part of research projects at Aarhus University | 1.56M | [CC-0] |
283
+ | [tv2r] | Contemporary Danish newswire articles published between 2010 and 2019 | 21.67M | [CC-BY-SA 4.0] |
284
+ | [adl] | Danish literature from 1700-2023 from the Archive for Danish Literature (ADL) | 58.49M | [CC-0] |
285
+ | [hest] | Samples from the Danish debate forum www.heste-nettet.dk | 389.33M | [CC-0] |
286
+ | [skat] | Skat is the Danish tax authority. This dataset contains content from its website skat.dk | 122.12M | [CC-0] |
287
+ | [dannet] | [DanNet](https://cst.ku.dk/projekter/dannet) is a Danish WordNet | 1.52M | [DanNet 1.0 License] |
288
+ | [retspraksis] | Case law or judical practice in Denmark derived from [Retspraksis](https://da.wikipedia.org/wiki/Retspraksis) | 57.08M | [CC-0] |
289
+ | [wikibooks] | The Danish Subsection of [Wikibooks](https://www.wikibooks.org) | 6.24M | [CC-0] |
290
+ | [jvj] | The works of the Danish author and poet, [Johannes V. Jensen](https://da.wikipedia.org/wiki/Johannes_V._Jensen) | 3.55M | [CC-BY-SA 4.0] |
291
+ | [gutenberg] | The Danish subsection from Project [Gutenberg](https://www.gutenberg.org) | 6.76M | [Gutenberg License] |
292
+ | [botxt] | The Bornholmsk Ordbog Dictionary Projec | 847.97K | [CC-0] |
293
+ | [depbank] | The Danish subsection of the [Universal Dependencies Treebank](https://github.com/UniversalDependencies/UD_Danish-DDT) | 185.45K | [CC-BY-SA 4.0] |
294
+ | [naat] | Danish speeches from 1930-2022 | 286.68K | [CC-0] |
295
+ | [synne] | Dataset collected from [synnejysk forening's website](https://www.synnejysk.dk), covering the Danish dialect sønderjysk | 52.51K | [CC-0] |
296
+ | [wiki] | The Danish subsection of [wikipedia](https://en.wikipedia.org/wiki/Main_Page) | 122.00M | [CC-0] |
297
+ | [nordjyllandnews] | Articles from the Danish Newspaper [TV2 Nord](https://www.tv2nord.dk) | 37.91M | [CC-0] |
298
+ | [relig] | Danish religious text from the 1700-2022 | 1.24M | [CC-0] |
299
+ | **Total** | | 1.84B | |
300
 
301
  [lexdk]: data/lexdk/lexdk.md
302
  [opensubtitles]: data/opensubtitles/opensubtitles.md
docs/logo.key CHANGED
Binary files a/docs/logo.key and b/docs/logo.key differ
 
pyproject.toml CHANGED
@@ -1,25 +1,28 @@
1
  [project]
2
  name = "danish-dynaword"
3
- version = "1.0.5"
4
  description = "project code for the danish dynaword project"
5
  readme = "README.md"
6
- requires-python = ">=3.12,<3.13"
7
  dependencies = [
8
  # for commands
9
- "datasets>=3.0.0", # loading and validating datasets
10
- "gitpython>=3.1.43", # interacting with git
11
- "numpy>=2.2.0",
12
- "pydantic>=2.10.4", # validating schemas
13
- "tabulate>=0.9.0", # creating md table
14
- "tomlkit>=0.13.2", # reading toml
15
  "transformers>=4.47.1", # tokenization
16
- # create.py
17
- "spacy>=3.8.3", # only need for opensubtitles/create.py
18
  # development
19
  "ipykernel>=6.29.5",
20
  # test
21
  "pytest>=8.3.4",
22
  # formatting
23
  "ruff>=0.8.3",
24
- "plotnine>=0.14.5",
 
 
 
 
 
25
  ]
 
1
  [project]
2
  name = "danish-dynaword"
3
+ version = "1.0.7"
4
  description = "project code for the danish dynaword project"
5
  readme = "README.md"
6
+ requires-python = ">=3.12,<3.13" # 3.13 have issues with spacy and pytorch
7
  dependencies = [
8
  # for commands
9
+ "datasets>=3.0.0", # loading and validating datasets
10
+ "gitpython>=3.1.43", # interacting with git
11
+ "pydantic>=2.10.4", # validating schemas
12
+ "tabulate>=0.9.0", # creating md table
13
+ "plotnine>=0.14.5", # figures
14
+ "tomlkit>=0.13.2", # reading toml
15
  "transformers>=4.47.1", # tokenization
 
 
16
  # development
17
  "ipykernel>=6.29.5",
18
  # test
19
  "pytest>=8.3.4",
20
  # formatting
21
  "ruff>=0.8.3",
22
+ # new
23
+ ]
24
+
25
+ [project.optional-dependencies]
26
+ opensubtitles = [
27
+ "spacy>=3.8.3", # only need for opensubtitles/create.py
28
  ]
src/bump_version.py CHANGED
@@ -7,12 +7,54 @@ c_file = Path(__file__)
7
  pyproject = c_file.parent.parent / "pyproject.toml"
8
 
9
 
10
- with pyproject.open("r") as f:
11
- data = tomlkit.load(f)
12
- version = Version(data["project"]["version"]) # type: ignore
13
- data["project"]["version"] = str( # type: ignore
14
- Version(f"{version.major}.{version.minor}.{version.micro + 1}")
15
- )
16
-
17
- with pyproject.open("w") as f:
18
- tomlkit.dump(data, f)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  pyproject = c_file.parent.parent / "pyproject.toml"
8
 
9
 
10
+ def get_version(pyproject_path: Path = pyproject) -> str:
11
+ with pyproject_path.open("r") as f:
12
+ data = tomlkit.load(f)
13
+ return data["project"]["version"] # type: ignore
14
+
15
+
16
+ def update_pyproject_version(version: str, pyproject_path: Path) -> None:
17
+ with pyproject_path.open("r") as f:
18
+ data = tomlkit.load(f)
19
+ data["project"]["version"] = version # type: ignore
20
+
21
+ with pyproject_path.open("w") as f:
22
+ tomlkit.dump(data, f)
23
+
24
+
25
+ def update_readme(version: str, readme_path: Path) -> None:
26
+ """Find version in README table and update it."""
27
+ start = "<!-- START README TABLE -->"
28
+ end = "<!-- END README TABLE -->"
29
+
30
+ with readme_path.open("r") as f:
31
+ lines = f.readlines()
32
+
33
+ in_table = False
34
+ for i, line in enumerate(lines):
35
+ if start in line:
36
+ in_table = True
37
+ if in_table:
38
+ if "**Version**" in line:
39
+ lines[i] = f"| **Version** | {version} |\n"
40
+ break
41
+ if end in line:
42
+ raise ValueError("**Version** not found in README table.")
43
+
44
+ with readme_path.open("w") as f:
45
+ f.writelines(lines)
46
+
47
+
48
+ def main(pyproject_path: Path, readme_path: Path) -> None:
49
+ version = get_version(pyproject_path)
50
+ version = Version(version)
51
+ version = Version(f"{version.major}.{version.minor}.{version.micro + 1}")
52
+ update_pyproject_version(str(version), pyproject_path)
53
+ update_readme(str(version), readme_path)
54
+
55
+
56
+ if __name__ == "__main__":
57
+ c_file = Path(__file__)
58
+ pyproject_path = c_file.parent.parent / "pyproject.toml"
59
+ readme_path = c_file.parent.parent / "README.md"
60
+ main(pyproject_path, readme_path)
test_results.log CHANGED
@@ -7,7 +7,32 @@ collected 96 items
7
  src/tests/test_dataset_schema.py ....................................... [ 40%]
8
  .............................. [ 71%]
9
  src/tests/test_duplicates.py ssssssssssssssssssssssss [ 96%]
10
- src/tests/test_load.py .. [ 98%]
11
  src/tests/test_unique_ids.py . [100%]
12
 
13
- ======================== 72 passed, 24 skipped in 3.98s ========================
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  src/tests/test_dataset_schema.py ....................................... [ 40%]
8
  .............................. [ 71%]
9
  src/tests/test_duplicates.py ssssssssssssssssssssssss [ 96%]
10
+ src/tests/test_load.py .F [ 98%]
11
  src/tests/test_unique_ids.py . [100%]
12
 
13
+ =================================== FAILURES ===================================
14
+ __________________________ test_all_datasets_in_yaml ___________________________
15
+
16
+ repo_path = PosixPath('/Users/au561649/Github/danish-dynaword')
17
+
18
+ def test_all_datasets_in_yaml(repo_path: Path):
19
+ frontmatter, _ = read_frontmatter_and_body(repo_path / "README.md")
20
+
21
+ ds_names = {
22
+ cfg["config_name"]
23
+ for cfg in frontmatter["configs"]
24
+ if cfg["config_name"] != "default"
25
+ }
26
+
27
+ data_folder = repo_path / "data"
28
+ datasets = data_folder.glob("*")
29
+
30
+ for dataset in datasets:
31
+ > assert dataset.name in ds_names
32
+ E AssertionError: assert 'miljoeportalen' in {'adl', 'botxt', 'dannet', 'depbank', 'ep', 'ft', ...}
33
+ E + where 'miljoeportalen' = PosixPath('/Users/au561649/Github/danish-dynaword/data/miljoeportalen').name
34
+
35
+ src/tests/test_load.py:29: AssertionError
36
+ =========================== short test summary info ============================
37
+ FAILED src/tests/test_load.py::test_all_datasets_in_yaml - AssertionError: as...
38
+ ================== 1 failed, 71 passed, 24 skipped in 14.54s ===================
uv.lock CHANGED
@@ -1,5 +1,10 @@
1
  version = 1
2
  requires-python = "==3.12.*"
 
 
 
 
 
3
 
4
  [[package]]
5
  name = "aiohappyeyeballs"
@@ -270,34 +275,36 @@ wheels = [
270
 
271
  [[package]]
272
  name = "danish-dynaword"
273
- version = "1.0.5"
274
  source = { virtual = "." }
275
  dependencies = [
276
  { name = "datasets" },
277
  { name = "gitpython" },
278
  { name = "ipykernel" },
279
- { name = "numpy" },
280
  { name = "plotnine" },
281
  { name = "pydantic" },
282
  { name = "pytest" },
283
  { name = "ruff" },
284
- { name = "spacy" },
285
  { name = "tabulate" },
286
  { name = "tomlkit" },
287
  { name = "transformers" },
288
  ]
289
 
 
 
 
 
 
290
  [package.metadata]
291
  requires-dist = [
292
  { name = "datasets", specifier = ">=3.0.0" },
293
  { name = "gitpython", specifier = ">=3.1.43" },
294
  { name = "ipykernel", specifier = ">=6.29.5" },
295
- { name = "numpy", specifier = ">=2.2.0" },
296
  { name = "plotnine", specifier = ">=0.14.5" },
297
  { name = "pydantic", specifier = ">=2.10.4" },
298
  { name = "pytest", specifier = ">=8.3.4" },
299
  { name = "ruff", specifier = ">=0.8.3" },
300
- { name = "spacy", specifier = ">=3.8.3" },
301
  { name = "tabulate", specifier = ">=0.9.0" },
302
  { name = "tomlkit", specifier = ">=0.13.2" },
303
  { name = "transformers", specifier = ">=4.47.1" },
@@ -895,21 +902,21 @@ wheels = [
895
 
896
  [[package]]
897
  name = "pillow"
898
- version = "11.1.0"
899
  source = { registry = "https://pypi.org/simple" }
900
- sdist = { url = "https://files.pythonhosted.org/packages/f3/af/c097e544e7bd278333db77933e535098c259609c4eb3b85381109602fb5b/pillow-11.1.0.tar.gz", hash = "sha256:368da70808b36d73b4b390a8ffac11069f8a5c85f29eff1f1b01bcf3ef5b2a20", size = 46742715 }
901
  wheels = [
902
- { url = "https://files.pythonhosted.org/packages/95/20/9ce6ed62c91c073fcaa23d216e68289e19d95fb8188b9fb7a63d36771db8/pillow-11.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:2062ffb1d36544d42fcaa277b069c88b01bb7298f4efa06731a7fd6cc290b81a", size = 3226818 },
903
- { url = "https://files.pythonhosted.org/packages/b9/d8/f6004d98579a2596c098d1e30d10b248798cceff82d2b77aa914875bfea1/pillow-11.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a85b653980faad27e88b141348707ceeef8a1186f75ecc600c395dcac19f385b", size = 3101662 },
904
- { url = "https://files.pythonhosted.org/packages/08/d9/892e705f90051c7a2574d9f24579c9e100c828700d78a63239676f960b74/pillow-11.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9409c080586d1f683df3f184f20e36fb647f2e0bc3988094d4fd8c9f4eb1b3b3", size = 4329317 },
905
- { url = "https://files.pythonhosted.org/packages/8c/aa/7f29711f26680eab0bcd3ecdd6d23ed6bce180d82e3f6380fb7ae35fcf3b/pillow-11.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7fdadc077553621911f27ce206ffcbec7d3f8d7b50e0da39f10997e8e2bb7f6a", size = 4412999 },
906
- { url = "https://files.pythonhosted.org/packages/c8/c4/8f0fe3b9e0f7196f6d0bbb151f9fba323d72a41da068610c4c960b16632a/pillow-11.1.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:93a18841d09bcdd774dcdc308e4537e1f867b3dec059c131fde0327899734aa1", size = 4368819 },
907
- { url = "https://files.pythonhosted.org/packages/38/0d/84200ed6a871ce386ddc82904bfadc0c6b28b0c0ec78176871a4679e40b3/pillow-11.1.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:9aa9aeddeed452b2f616ff5507459e7bab436916ccb10961c4a382cd3e03f47f", size = 4496081 },
908
- { url = "https://files.pythonhosted.org/packages/84/9c/9bcd66f714d7e25b64118e3952d52841a4babc6d97b6d28e2261c52045d4/pillow-11.1.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3cdcdb0b896e981678eee140d882b70092dac83ac1cdf6b3a60e2216a73f2b91", size = 4296513 },
909
- { url = "https://files.pythonhosted.org/packages/db/61/ada2a226e22da011b45f7104c95ebda1b63dcbb0c378ad0f7c2a710f8fd2/pillow-11.1.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:36ba10b9cb413e7c7dfa3e189aba252deee0602c86c309799da5a74009ac7a1c", size = 4431298 },
910
- { url = "https://files.pythonhosted.org/packages/e7/c4/fc6e86750523f367923522014b821c11ebc5ad402e659d8c9d09b3c9d70c/pillow-11.1.0-cp312-cp312-win32.whl", hash = "sha256:cfd5cd998c2e36a862d0e27b2df63237e67273f2fc78f47445b14e73a810e7e6", size = 2291630 },
911
- { url = "https://files.pythonhosted.org/packages/08/5c/2104299949b9d504baf3f4d35f73dbd14ef31bbd1ddc2c1b66a5b7dfda44/pillow-11.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:a697cd8ba0383bba3d2d3ada02b34ed268cb548b369943cd349007730c92bddf", size = 2626369 },
912
- { url = "https://files.pythonhosted.org/packages/37/f3/9b18362206b244167c958984b57c7f70a0289bfb59a530dd8af5f699b910/pillow-11.1.0-cp312-cp312-win_arm64.whl", hash = "sha256:4dd43a78897793f60766563969442020e90eb7847463eca901e41ba186a7d4a5", size = 2375240 },
913
  ]
914
 
915
  [[package]]
@@ -1153,12 +1160,12 @@ wheels = [
1153
 
1154
  [[package]]
1155
  name = "pywin32"
1156
- version = "308"
1157
  source = { registry = "https://pypi.org/simple" }
1158
  wheels = [
1159
- { url = "https://files.pythonhosted.org/packages/00/7c/d00d6bdd96de4344e06c4afbf218bc86b54436a94c01c71a8701f613aa56/pywin32-308-cp312-cp312-win32.whl", hash = "sha256:587f3e19696f4bf96fde9d8a57cec74a57021ad5f204c9e627e15c33ff568897", size = 5939729 },
1160
- { url = "https://files.pythonhosted.org/packages/21/27/0c8811fbc3ca188f93b5354e7c286eb91f80a53afa4e11007ef661afa746/pywin32-308-cp312-cp312-win_amd64.whl", hash = "sha256:00b3e11ef09ede56c6a43c71f2d31857cf7c54b0ab6e78ac659497abd2834f47", size = 6543015 },
1161
- { url = "https://files.pythonhosted.org/packages/9d/0f/d40f8373608caed2255781a3ad9a51d03a594a1248cd632d6a298daca693/pywin32-308-cp312-cp312-win_arm64.whl", hash = "sha256:9b4de86c8d909aed15b7011182c8cab38c8850de36e6afb1f0db22b8959e3091", size = 7976033 },
1162
  ]
1163
 
1164
  [[package]]
@@ -1601,7 +1608,7 @@ wheels = [
1601
 
1602
  [[package]]
1603
  name = "typer"
1604
- version = "0.15.1"
1605
  source = { registry = "https://pypi.org/simple" }
1606
  dependencies = [
1607
  { name = "click" },
@@ -1609,9 +1616,9 @@ dependencies = [
1609
  { name = "shellingham" },
1610
  { name = "typing-extensions" },
1611
  ]
1612
- sdist = { url = "https://files.pythonhosted.org/packages/cb/ce/dca7b219718afd37a0068f4f2530a727c2b74a8b6e8e0c0080a4c0de4fcd/typer-0.15.1.tar.gz", hash = "sha256:a0588c0a7fa68a1978a069818657778f86abe6ff5ea6abf472f940a08bfe4f0a", size = 99789 }
1613
  wheels = [
1614
- { url = "https://files.pythonhosted.org/packages/d0/cc/0a838ba5ca64dc832aa43f727bd586309846b0ffb2ce52422543e6075e8a/typer-0.15.1-py3-none-any.whl", hash = "sha256:7994fb7b8155b64d3402518560648446072864beefd44aa2dc36972a5972e847", size = 44908 },
1615
  ]
1616
 
1617
  [[package]]
 
1
  version = 1
2
  requires-python = "==3.12.*"
3
+ resolution-markers = [
4
+ "sys_platform == 'darwin'",
5
+ "platform_machine == 'aarch64' and sys_platform == 'linux'",
6
+ "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')",
7
+ ]
8
 
9
  [[package]]
10
  name = "aiohappyeyeballs"
 
275
 
276
  [[package]]
277
  name = "danish-dynaword"
278
+ version = "1.0.6"
279
  source = { virtual = "." }
280
  dependencies = [
281
  { name = "datasets" },
282
  { name = "gitpython" },
283
  { name = "ipykernel" },
 
284
  { name = "plotnine" },
285
  { name = "pydantic" },
286
  { name = "pytest" },
287
  { name = "ruff" },
 
288
  { name = "tabulate" },
289
  { name = "tomlkit" },
290
  { name = "transformers" },
291
  ]
292
 
293
+ [package.optional-dependencies]
294
+ opensubtitles = [
295
+ { name = "spacy" },
296
+ ]
297
+
298
  [package.metadata]
299
  requires-dist = [
300
  { name = "datasets", specifier = ">=3.0.0" },
301
  { name = "gitpython", specifier = ">=3.1.43" },
302
  { name = "ipykernel", specifier = ">=6.29.5" },
 
303
  { name = "plotnine", specifier = ">=0.14.5" },
304
  { name = "pydantic", specifier = ">=2.10.4" },
305
  { name = "pytest", specifier = ">=8.3.4" },
306
  { name = "ruff", specifier = ">=0.8.3" },
307
+ { name = "spacy", marker = "extra == 'opensubtitles'", specifier = ">=3.8.3" },
308
  { name = "tabulate", specifier = ">=0.9.0" },
309
  { name = "tomlkit", specifier = ">=0.13.2" },
310
  { name = "transformers", specifier = ">=4.47.1" },
 
902
 
903
  [[package]]
904
  name = "pillow"
905
+ version = "10.4.0"
906
  source = { registry = "https://pypi.org/simple" }
907
+ sdist = { url = "https://files.pythonhosted.org/packages/cd/74/ad3d526f3bf7b6d3f408b73fde271ec69dfac8b81341a318ce825f2b3812/pillow-10.4.0.tar.gz", hash = "sha256:166c1cd4d24309b30d61f79f4a9114b7b2313d7450912277855ff5dfd7cd4a06", size = 46555059 }
908
  wheels = [
909
+ { url = "https://files.pythonhosted.org/packages/05/cb/0353013dc30c02a8be34eb91d25e4e4cf594b59e5a55ea1128fde1e5f8ea/pillow-10.4.0-cp312-cp312-macosx_10_10_x86_64.whl", hash = "sha256:673655af3eadf4df6b5457033f086e90299fdd7a47983a13827acf7459c15d94", size = 3509350 },
910
+ { url = "https://files.pythonhosted.org/packages/e7/cf/5c558a0f247e0bf9cec92bff9b46ae6474dd736f6d906315e60e4075f737/pillow-10.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:866b6942a92f56300012f5fbac71f2d610312ee65e22f1aa2609e491284e5597", size = 3374980 },
911
+ { url = "https://files.pythonhosted.org/packages/84/48/6e394b86369a4eb68b8a1382c78dc092245af517385c086c5094e3b34428/pillow-10.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29dbdc4207642ea6aad70fbde1a9338753d33fb23ed6956e706936706f52dd80", size = 4343799 },
912
+ { url = "https://files.pythonhosted.org/packages/3b/f3/a8c6c11fa84b59b9df0cd5694492da8c039a24cd159f0f6918690105c3be/pillow-10.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bf2342ac639c4cf38799a44950bbc2dfcb685f052b9e262f446482afaf4bffca", size = 4459973 },
913
+ { url = "https://files.pythonhosted.org/packages/7d/1b/c14b4197b80150fb64453585247e6fb2e1d93761fa0fa9cf63b102fde822/pillow-10.4.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:f5b92f4d70791b4a67157321c4e8225d60b119c5cc9aee8ecf153aace4aad4ef", size = 4370054 },
914
+ { url = "https://files.pythonhosted.org/packages/55/77/40daddf677897a923d5d33329acd52a2144d54a9644f2a5422c028c6bf2d/pillow-10.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:86dcb5a1eb778d8b25659d5e4341269e8590ad6b4e8b44d9f4b07f8d136c414a", size = 4539484 },
915
+ { url = "https://files.pythonhosted.org/packages/40/54/90de3e4256b1207300fb2b1d7168dd912a2fb4b2401e439ba23c2b2cabde/pillow-10.4.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:780c072c2e11c9b2c7ca37f9a2ee8ba66f44367ac3e5c7832afcfe5104fd6d1b", size = 4477375 },
916
+ { url = "https://files.pythonhosted.org/packages/13/24/1bfba52f44193860918ff7c93d03d95e3f8748ca1de3ceaf11157a14cf16/pillow-10.4.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:37fb69d905be665f68f28a8bba3c6d3223c8efe1edf14cc4cfa06c241f8c81d9", size = 4608773 },
917
+ { url = "https://files.pythonhosted.org/packages/55/04/5e6de6e6120451ec0c24516c41dbaf80cce1b6451f96561235ef2429da2e/pillow-10.4.0-cp312-cp312-win32.whl", hash = "sha256:7dfecdbad5c301d7b5bde160150b4db4c659cee2b69589705b6f8a0c509d9f42", size = 2235690 },
918
+ { url = "https://files.pythonhosted.org/packages/74/0a/d4ce3c44bca8635bd29a2eab5aa181b654a734a29b263ca8efe013beea98/pillow-10.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:1d846aea995ad352d4bdcc847535bd56e0fd88d36829d2c90be880ef1ee4668a", size = 2554951 },
919
+ { url = "https://files.pythonhosted.org/packages/b5/ca/184349ee40f2e92439be9b3502ae6cfc43ac4b50bc4fc6b3de7957563894/pillow-10.4.0-cp312-cp312-win_arm64.whl", hash = "sha256:e553cad5179a66ba15bb18b353a19020e73a7921296a7979c4a2b7f6a5cd57f9", size = 2243427 },
920
  ]
921
 
922
  [[package]]
 
1160
 
1161
  [[package]]
1162
  name = "pywin32"
1163
+ version = "307"
1164
  source = { registry = "https://pypi.org/simple" }
1165
  wheels = [
1166
+ { url = "https://files.pythonhosted.org/packages/90/4e/9c660fa6c34db3c9542c9682b0ccd9edd63a6a4cb6ac4d22014b2c3355c9/pywin32-307-cp312-cp312-win32.whl", hash = "sha256:07649ec6b01712f36debf39fc94f3d696a46579e852f60157a729ac039df0815", size = 5916997 },
1167
+ { url = "https://files.pythonhosted.org/packages/9c/11/c56e771d2cdbd2dac8e656edb2c814e4b2239da2c9028aa7265cdfff8aed/pywin32-307-cp312-cp312-win_amd64.whl", hash = "sha256:00d047992bb5dcf79f8b9b7c81f72e0130f9fe4b22df613f755ab1cc021d8347", size = 6519708 },
1168
+ { url = "https://files.pythonhosted.org/packages/cd/64/53b1112cb05f85a6c87339a9f90a3b82d67ecb46f16b45abaac3bf4dee2b/pywin32-307-cp312-cp312-win_arm64.whl", hash = "sha256:b53658acbfc6a8241d72cc09e9d1d666be4e6c99376bc59e26cdb6223c4554d2", size = 7952978 },
1169
  ]
1170
 
1171
  [[package]]
 
1608
 
1609
  [[package]]
1610
  name = "typer"
1611
+ version = "0.12.5"
1612
  source = { registry = "https://pypi.org/simple" }
1613
  dependencies = [
1614
  { name = "click" },
 
1616
  { name = "shellingham" },
1617
  { name = "typing-extensions" },
1618
  ]
1619
+ sdist = { url = "https://files.pythonhosted.org/packages/c5/58/a79003b91ac2c6890fc5d90145c662fd5771c6f11447f116b63300436bc9/typer-0.12.5.tar.gz", hash = "sha256:f592f089bedcc8ec1b974125d64851029c3b1af145f04aca64d69410f0c9b722", size = 98953 }
1620
  wheels = [
1621
+ { url = "https://files.pythonhosted.org/packages/a8/2b/886d13e742e514f704c33c4caa7df0f3b89e5a25ef8db02aa9ca3d9535d5/typer-0.12.5-py3-none-any.whl", hash = "sha256:62fe4e471711b147e3365034133904df3e235698399bc4de2b36c8579298d52b", size = 47288 },
1622
  ]
1623
 
1624
  [[package]]