datamaestro-text 2025.1.7__tar.gz → 2025.4.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. {datamaestro_text-2025.1.7/src/datamaestro_text.egg-info → datamaestro_text-2025.4.3}/PKG-INFO +3 -2
  2. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/com/microsoft/msmarco/passage.py +8 -7
  3. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/com/sentiment140.py +0 -4
  4. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/edu/upenn/ldc/aquaint.py +3 -4
  5. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/gov/nist/trec/tipster.py +1 -1
  6. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/embeddings.py +3 -3
  7. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/ir/cord19.py +2 -1
  8. datamaestro_text-2025.4.3/src/datamaestro_text/data/recommendation.py +13 -0
  9. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/text.py +6 -6
  10. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/version.py +9 -4
  11. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3/src/datamaestro_text.egg-info}/PKG-INFO +3 -2
  12. datamaestro_text-2025.1.7/src/datamaestro_text/data/recommendation.py +0 -14
  13. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/.circleci/config.yml +0 -0
  14. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/.flake8 +0 -0
  15. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/.github/workflows/pytest.yml +0 -0
  16. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/.github/workflows/python-publish.yml +0 -0
  17. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/.gitignore +0 -0
  18. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/.pre-commit-config.yaml +0 -0
  19. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/.readthedocs.yml +0 -0
  20. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/LICENSE +0 -0
  21. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/MANIFEST.in +0 -0
  22. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/Makefile +0 -0
  23. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/README.md +0 -0
  24. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/Makefile +0 -0
  25. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/make.bat +0 -0
  26. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/requirements.txt +0 -0
  27. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/api/conversation.rst +0 -0
  28. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/api/embeddings.rst +0 -0
  29. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/api/index.rst +0 -0
  30. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/api/ir.rst +0 -0
  31. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/api/nlp.rst +0 -0
  32. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/api/recommendation.rst +0 -0
  33. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/api/text.rst +0 -0
  34. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/conf.py +0 -0
  35. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/datasets/conversation.rst +0 -0
  36. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/datasets/embeddings.rst +0 -0
  37. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/datasets/index.rst +0 -0
  38. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/datasets/ir.rst +0 -0
  39. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/datasets/irds.rst +0 -0
  40. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/datasets/recommendation.rst +0 -0
  41. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/datasets/text.rst +0 -0
  42. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/docs/source/index.rst +0 -0
  43. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/mkdocs.yml +0 -0
  44. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/pyproject.toml +0 -0
  45. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/requirements-dev.txt +0 -0
  46. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/requirements.txt +0 -0
  47. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/setup.cfg +0 -0
  48. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/__init__.py +0 -0
  49. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/__init__.py +0 -0
  50. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/ai/quac.yaml +0 -0
  51. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/com/fastml/goodbooks-10k.yaml +0 -0
  52. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/com/github/aagohary/canard.py +0 -0
  53. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/com/github/apple/ml-qrecc.py +0 -0
  54. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/com/github/prdwb/orconvqa.py +0 -0
  55. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/com/github/soskek/bookcorpus.yaml +0 -0
  56. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/com/microsoft/wikiqa.yaml +0 -0
  57. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/com/oscar-corpus.py +0 -0
  58. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/com/smashwords/bookcorpus.py +0 -0
  59. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/edu/cornell/nlvr.yaml +0 -0
  60. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/edu/stanford/__init__.py +0 -0
  61. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/edu/stanford/aclimdb.py +0 -0
  62. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/edu/stanford/glove.py +0 -0
  63. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/edu/stanford/im2p.yaml +0 -0
  64. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/edu/upenn/__init__.py +0 -0
  65. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/edu/upenn/ldc/__init__.py +0 -0
  66. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/gov/__init__.py +0 -0
  67. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/gov/nist/__init__.py +0 -0
  68. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/gov/nist/ir/covid.py +0 -0
  69. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/gov/nist/trec/__init__.py +0 -0
  70. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/gov/nist/trec/adhoc.py +0 -0
  71. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/gov/nist/trec/clueweb.yaml +0 -0
  72. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/gov/nist/trec/deeplearning.yaml +0 -0
  73. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/gov/nist/trec/index.yaml +0 -0
  74. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/gov/nist/trec/web.yaml +0 -0
  75. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/io/github/rajpurkar/squad.yaml +0 -0
  76. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/io/github/thunlp/fewrel.py +0 -0
  77. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/io/metamind/research/__init__.py +0 -0
  78. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/io/metamind/research/wikitext.py +0 -0
  79. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/net/mattmahoney/enwiki.yaml +0 -0
  80. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/org/acm/recsys/cb2014.yaml +0 -0
  81. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/org/cocodataset/index.yaml +0 -0
  82. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/org/grouplens/movielens.py +0 -0
  83. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/org/universaldependencies/french.py +0 -0
  84. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/config/uk/ac/ucl/cs/qangaroo.yaml +0 -0
  85. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/__init__.py +0 -0
  86. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/conversation/__init__.py +0 -0
  87. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/conversation/base.py +0 -0
  88. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/conversation/canard.py +0 -0
  89. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/conversation/orconvqa.py +0 -0
  90. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/conversation/qrecc.py +0 -0
  91. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/ir/__init__.py +0 -0
  92. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/ir/base.py +0 -0
  93. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/ir/csv.py +0 -0
  94. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/ir/data.py +0 -0
  95. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/ir/formats.py +0 -0
  96. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/ir/huggingface.py +0 -0
  97. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/ir/stores.py +0 -0
  98. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/ir/trec.py +0 -0
  99. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/ir/utils.py +0 -0
  100. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/data/tagging.py +0 -0
  101. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/datasets/irds/__init__.py +0 -0
  102. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/datasets/irds/data.py +0 -0
  103. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/datasets/irds/datasets.py +0 -0
  104. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/datasets/irds/helpers.py +0 -0
  105. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/datasets/irds/utils.py +0 -0
  106. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/download/tmdb.py +0 -0
  107. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/interfaces/plaintext.py +0 -0
  108. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/interfaces/trec.py +0 -0
  109. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/test/__init__.py +0 -0
  110. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/test/test_datasets.py +0 -0
  111. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/test/test_documented.py +0 -0
  112. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/transforms/__init__.py +0 -0
  113. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/transforms/ir/__init__.py +0 -0
  114. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/utils/__init__.py +0 -0
  115. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/utils/files.py +0 -0
  116. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/utils/iter.py +0 -0
  117. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/utils/randomstream.py +0 -0
  118. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text/utils/shuffle.py +0 -0
  119. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text.egg-info/SOURCES.txt +0 -0
  120. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text.egg-info/dependency_links.txt +0 -0
  121. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text.egg-info/entry_points.txt +0 -0
  122. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text.egg-info/requires.txt +0 -0
  123. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/src/datamaestro_text.egg-info/top_level.txt +0 -0
  124. {datamaestro_text-2025.1.7 → datamaestro_text-2025.4.3}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: datamaestro-text
3
- Version: 2025.1.7
3
+ Version: 2025.4.3
4
4
  Summary: Datamaestro module for text-related datasets
5
5
  Author-email: Benjamin Piwowarski <benjamin@piwowarski.fr>
6
6
  License: GPL-3
@@ -21,6 +21,7 @@ License-File: LICENSE
21
21
  Requires-Dist: datamaestro>=1.2.1
22
22
  Requires-Dist: ir_datasets>=0.5.8
23
23
  Requires-Dist: attrs
24
+ Dynamic: license-file
24
25
 
25
26
  [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) [![PyPI version](https://badge.fury.io/py/datamaestro-text.svg)](https://badge.fury.io/py/datamaestro-text)
26
27
 
@@ -1,11 +1,11 @@
1
1
  """MS MARCO (Microsoft Machine Reading Comprehension) is a large scale dataset focused on machine reading comprehension, question answering, and passage ranking. A variant of this task will be the part of TREC and AFIRM 2019. For Updates about TREC 2019 please follow This Repository Passage Reranking task Task Given a query q and a the 1000 most relevant passages P = p1, p2, p3,... p1000, as retrieved by BM25 a succeful system is expected to rerank the most relevant passage as high as possible. For this task not all 1000 relevant items have a human labeled relevant passage. Evaluation will be done using MRR.
2
2
 
3
- **Publication**:
4
- Tri Nguyen, Mir Rosenberg, Xia Song, Jianfeng Gao, Saurabh Tiwary, RanganMajumder, and Li Deng. 2016.
5
- MS MARCO: A Human Generated MAchineReading COmprehension Dataset. In CoCo@NIPS.
3
+ **Publication**:
4
+ Tri Nguyen, Mir Rosenberg, Xia Song, Jianfeng Gao, Saurabh Tiwary, RanganMajumder, and Li Deng. 2016.
5
+ MS MARCO: A Human Generated MAchineReading COmprehension Dataset. In CoCo@NIPS.
6
6
 
7
7
 
8
- See [https://github.com/microsoft/MSMARCO-Passage-Ranking](https://github.com/microsoft/MSMARCO-Passage-Ranking) for more details
8
+ See [https://github.com/microsoft/MSMARCO-Passage-Ranking](https://github.com/microsoft/MSMARCO-Passage-Ranking) for more details
9
9
  """
10
10
 
11
11
  from datamaestro.annotations.agreement import useragreement
@@ -35,6 +35,7 @@ http://www.msmarco.org/dataset.aspx""",
35
35
 
36
36
  # --- Document collection
37
37
 
38
+
38
39
  # TODO: Not ideal since it would be better to have small versions right away
39
40
  # instead of downloading again the MS Marco Collection
40
41
  @lua
@@ -43,10 +44,10 @@ http://www.msmarco.org/dataset.aspx""",
43
44
  url="https://msmarco.blob.core.windows.net/msmarcoranking/collectionandqueries.tar.gz",
44
45
  checker=HashCheck("31644046b18952c1386cd4564ba2ae69", md5),
45
46
  )
46
- @dataset(Folder, url="https://github.com/microsoft/MSMARCO-Passage-Ranking")
47
- def collection_etc(data):
47
+ @dataset(url="https://github.com/microsoft/MSMARCO-Passage-Ranking")
48
+ def collection_etc(data) -> Folder:
48
49
  """Documents and some more files"""
49
- return {"path": data}
50
+ return Folder(path=data)
50
51
 
51
52
 
52
53
  @lua
@@ -4,10 +4,6 @@ from datamaestro.download.archive import zipdownloader
4
4
  from datamaestro.data.ml import Supervised
5
5
  from datamaestro.utils import HashCheck
6
6
 
7
- # name: Sentiment140
8
- # web: http://help.sentiment140.com/for-students/
9
-
10
- # description: |
11
7
 
12
8
 
13
9
  @zipdownloader(
@@ -1,10 +1,9 @@
1
1
  """The AQUAINT Corpus, Linguistic Data Consortium (LDC) catalog number LDC2002T31 and ISBN 1-58563-240-6 consists of newswire text data in English, drawn from three sources: the Xinhua News Service (People's Republic of China), the New York Times News Service, and the Associated Press Worldstream News Service. It was prepared by the LDC for the AQUAINT Project, and will be used in official benchmark evaluations conducted by National Institute of Standards and Technology (NIST)."""
2
2
 
3
- from datamaestro.definitions import DatafolderPath
4
- from datamaestro.data import Base
5
- from datamaestro_text.data.ir.trec import TipsterCollection
6
- from datamaestro.definitions import argument, datatasks, datatags, dataset
3
+ from datamaestro.context import DatafolderPath
4
+ from datamaestro.definitions import dataset
7
5
  from datamaestro.download.links import links, linkfolder
6
+ from datamaestro_text.data.ir.trec import TipsterCollection
8
7
 
9
8
 
10
9
  URL = "https://catalog.ldc.upenn.edu/LDC2002T31"
@@ -22,8 +22,8 @@ from datamaestro_text.data.ir.trec import TipsterCollection
22
22
  from datamaestro.download.links import linkfolder
23
23
  from datamaestro.definitions import (
24
24
  dataset,
25
- DatafolderPath,
26
25
  )
26
+ from datamaestro.context import DatafolderPath
27
27
 
28
28
  # Store meta-information
29
29
  TIPSTER = dataset(TipsterCollection, url="https://catalog.ldc.upenn.edu/LDC93T3A")
@@ -1,5 +1,5 @@
1
- from pathlib import Path
2
- from datamaestro.data import Base, File, argument
1
+ from experimaestro import Meta
2
+ from datamaestro.data import Base, File
3
3
  from datamaestro.definitions import datatags
4
4
  import numpy as np
5
5
  from typing import Tuple, List
@@ -18,9 +18,9 @@ class WordEmbeddings(Base):
18
18
  raise NotImplementedError()
19
19
 
20
20
 
21
- @argument("encoding", str, ignored=True, default="utf-8")
22
21
  class WordEmbeddingsText(WordEmbeddings, File):
23
22
  """Word embeddings as a text word / values"""
23
+ encoding: Meta[str] = "utf-8"
24
24
 
25
25
  def load(self):
26
26
  words = []
@@ -1,7 +1,8 @@
1
1
  from csv import DictReader
2
2
  from typing import Iterator
3
3
 
4
- from datamaestro.data import File, documentation
4
+ from experimaestro import documentation
5
+ from datamaestro.data import File
5
6
  from datamaestro.record import Record
6
7
  from datamaestro_text.data.ir import Documents, TopicRecord, Topics, IDItem
7
8
  from datamaestro_text.data.ir.formats import (
@@ -0,0 +1,13 @@
1
+ from experimaestro import Param
2
+ from datamaestro.data import Base, File
3
+ import datamaestro.data.csv as csv
4
+
5
+
6
+ class RatedItems(Base):
7
+ ratings: Param[File]
8
+
9
+
10
+ class Movielens(RatedItems):
11
+ links: Param[csv.Generic]
12
+ movies: Param[csv.Generic]
13
+ tags: Param[csv.Generic]
@@ -1,15 +1,15 @@
1
- from pathlib import Path
2
- from datamaestro.data import Base, Folder, File, argument
1
+ from typing import Optional
2
+ from experimaestro import Param
3
+ from datamaestro.data import Base, Folder, File
3
4
  from datamaestro.data.ml import Supervised
4
5
 
5
6
 
6
- @argument("train", type=Base)
7
- @argument("test", type=Base, required=False)
8
- @argument("validation", type=Base, required=False)
9
7
  class TrainingText(Supervised):
10
8
  """ "A dataset used for training with a train and a test"""
11
9
 
12
- pass
10
+ train: Param[Base]
11
+ test: Param[Optional[Base]] = None
12
+ validation: Param[Optional[Base]] = None
13
13
 
14
14
 
15
15
  class TextFolder(Folder):
@@ -1,8 +1,13 @@
1
- # file generated by setuptools_scm
1
+ # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
3
6
  TYPE_CHECKING = False
4
7
  if TYPE_CHECKING:
5
- from typing import Tuple, Union
8
+ from typing import Tuple
9
+ from typing import Union
10
+
6
11
  VERSION_TUPLE = Tuple[Union[int, str], ...]
7
12
  else:
8
13
  VERSION_TUPLE = object
@@ -12,5 +17,5 @@ __version__: str
12
17
  __version_tuple__: VERSION_TUPLE
13
18
  version_tuple: VERSION_TUPLE
14
19
 
15
- __version__ = version = '2025.1.7'
16
- __version_tuple__ = version_tuple = (2025, 1, 7)
20
+ __version__ = version = '2025.4.3'
21
+ __version_tuple__ = version_tuple = (2025, 4, 3)
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: datamaestro-text
3
- Version: 2025.1.7
3
+ Version: 2025.4.3
4
4
  Summary: Datamaestro module for text-related datasets
5
5
  Author-email: Benjamin Piwowarski <benjamin@piwowarski.fr>
6
6
  License: GPL-3
@@ -21,6 +21,7 @@ License-File: LICENSE
21
21
  Requires-Dist: datamaestro>=1.2.1
22
22
  Requires-Dist: ir_datasets>=0.5.8
23
23
  Requires-Dist: attrs
24
+ Dynamic: license-file
24
25
 
25
26
  [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) [![PyPI version](https://badge.fury.io/py/datamaestro-text.svg)](https://badge.fury.io/py/datamaestro-text)
26
27
 
@@ -1,14 +0,0 @@
1
- from datamaestro.data import Base, File, argument
2
- import datamaestro.data.csv as csv
3
-
4
-
5
- @argument("ratings", type=File)
6
- class RatedItems(Base):
7
- pass
8
-
9
-
10
- @argument("links", type=csv.Generic)
11
- @argument("movies", type=csv.Generic)
12
- @argument("tags", type=csv.Generic)
13
- class Movielens(RatedItems):
14
- pass