nucliadb-dataset 6.9.5.post5388__py3-none-any.whl → 6.9.5.post5403__py3-none-any.whl
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.
- nucliadb_dataset/tests/fixtures.py +0 -65
- {nucliadb_dataset-6.9.5.post5388.dist-info → nucliadb_dataset-6.9.5.post5403.dist-info}/METADATA +4 -4
- {nucliadb_dataset-6.9.5.post5388.dist-info → nucliadb_dataset-6.9.5.post5403.dist-info}/RECORD +6 -6
- {nucliadb_dataset-6.9.5.post5388.dist-info → nucliadb_dataset-6.9.5.post5403.dist-info}/WHEEL +0 -0
- {nucliadb_dataset-6.9.5.post5388.dist-info → nucliadb_dataset-6.9.5.post5403.dist-info}/entry_points.txt +0 -0
- {nucliadb_dataset-6.9.5.post5388.dist-info → nucliadb_dataset-6.9.5.post5403.dist-info}/top_level.txt +0 -0
|
@@ -22,7 +22,6 @@ import pytest
|
|
|
22
22
|
from grpc import aio
|
|
23
23
|
|
|
24
24
|
from nucliadb_models.common import UserClassification
|
|
25
|
-
from nucliadb_models.entities import CreateEntitiesGroupPayload, Entity
|
|
26
25
|
from nucliadb_models.labels import Label, LabelSet, LabelSetKind
|
|
27
26
|
from nucliadb_models.metadata import UserMetadata
|
|
28
27
|
from nucliadb_models.resource import KnowledgeBoxObj
|
|
@@ -156,70 +155,6 @@ def upload_data_paragraph_classification(sdk: NucliaDB, kb: KnowledgeBoxObj):
|
|
|
156
155
|
return kb
|
|
157
156
|
|
|
158
157
|
|
|
159
|
-
@pytest.fixture(scope="function")
|
|
160
|
-
def upload_data_token_classification(sdk: NucliaDB, kb: KnowledgeBoxObj):
|
|
161
|
-
sdk.create_entitygroup(
|
|
162
|
-
kbid=kb.uuid,
|
|
163
|
-
content=CreateEntitiesGroupPayload(
|
|
164
|
-
group="PERSON",
|
|
165
|
-
entities={
|
|
166
|
-
"ramon": Entity(value="Ramon"),
|
|
167
|
-
"carmen": Entity(value="Carmen Iniesta"),
|
|
168
|
-
"eudald": Entity(value="Eudald Camprubi"),
|
|
169
|
-
},
|
|
170
|
-
title="Animals",
|
|
171
|
-
color="black",
|
|
172
|
-
),
|
|
173
|
-
)
|
|
174
|
-
|
|
175
|
-
sdk.create_entitygroup(
|
|
176
|
-
kbid=kb.uuid,
|
|
177
|
-
content=CreateEntitiesGroupPayload(
|
|
178
|
-
group="ANIMAL",
|
|
179
|
-
entities={
|
|
180
|
-
"cheetah": Entity(value="cheetah"),
|
|
181
|
-
"tiger": Entity(value="tiger"),
|
|
182
|
-
"lion": Entity(value="lion"),
|
|
183
|
-
},
|
|
184
|
-
title="Animals",
|
|
185
|
-
color="black",
|
|
186
|
-
),
|
|
187
|
-
)
|
|
188
|
-
sdk.create_resource(
|
|
189
|
-
kbid=kb.uuid,
|
|
190
|
-
content=CreateResourcePayload(
|
|
191
|
-
slug=SlugString("doc1"),
|
|
192
|
-
texts={FieldIdString("text"): TextField(body="Ramon This is my lovely text")},
|
|
193
|
-
),
|
|
194
|
-
)
|
|
195
|
-
|
|
196
|
-
sdk.create_resource(
|
|
197
|
-
kbid=kb.uuid,
|
|
198
|
-
content=CreateResourcePayload(
|
|
199
|
-
slug=SlugString("doc2"),
|
|
200
|
-
texts={
|
|
201
|
-
FieldIdString("text"): TextField(
|
|
202
|
-
body="Carmen Iniesta shows an amazing classifier to Eudald Camprubi"
|
|
203
|
-
)
|
|
204
|
-
},
|
|
205
|
-
),
|
|
206
|
-
)
|
|
207
|
-
|
|
208
|
-
sdk.create_resource(
|
|
209
|
-
kbid=kb.uuid,
|
|
210
|
-
content=CreateResourcePayload(
|
|
211
|
-
slug=SlugString("doc3"),
|
|
212
|
-
texts={
|
|
213
|
-
FieldIdString("text"): TextField(
|
|
214
|
-
body="Which is the fastest animal, a lion, a tiger or a cheetah?"
|
|
215
|
-
)
|
|
216
|
-
},
|
|
217
|
-
),
|
|
218
|
-
)
|
|
219
|
-
|
|
220
|
-
return kb
|
|
221
|
-
|
|
222
|
-
|
|
223
158
|
@pytest.fixture(scope="function")
|
|
224
159
|
def text_editors_kb(sdk: NucliaDB, kb: KnowledgeBoxObj):
|
|
225
160
|
sdk.create_resource(
|
{nucliadb_dataset-6.9.5.post5388.dist-info → nucliadb_dataset-6.9.5.post5403.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nucliadb_dataset
|
|
3
|
-
Version: 6.9.5.
|
|
3
|
+
Version: 6.9.5.post5403
|
|
4
4
|
Summary: NucliaDB Train Python client
|
|
5
5
|
Author-email: Nuclia <nucliadb@nuclia.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -24,9 +24,9 @@ Requires-Dist: aiohttp
|
|
|
24
24
|
Requires-Dist: argdantic
|
|
25
25
|
Requires-Dist: pydantic-settings>=2.2
|
|
26
26
|
Requires-Dist: pyarrow
|
|
27
|
-
Requires-Dist: nucliadb-protos>=6.9.5.
|
|
28
|
-
Requires-Dist: nucliadb-sdk>=6.9.5.
|
|
29
|
-
Requires-Dist: nucliadb-models>=6.9.5.
|
|
27
|
+
Requires-Dist: nucliadb-protos>=6.9.5.post5403
|
|
28
|
+
Requires-Dist: nucliadb-sdk>=6.9.5.post5403
|
|
29
|
+
Requires-Dist: nucliadb-models>=6.9.5.post5403
|
|
30
30
|
|
|
31
31
|
# NUCLIADB TRAIN CLIENT
|
|
32
32
|
|
{nucliadb_dataset-6.9.5.post5388.dist-info → nucliadb_dataset-6.9.5.post5403.dist-info}/RECORD
RENAMED
|
@@ -10,9 +10,9 @@ nucliadb_dataset/settings.py,sha256=9NYeJVgIHbLqCenUFRwj6Iz9S7klOROXQfzaUiBUEl0,
|
|
|
10
10
|
nucliadb_dataset/streamer.py,sha256=aBzYWNQQVWM5qA14f8p0YQdshzC4KpOQFt3J0TYe1uk,3060
|
|
11
11
|
nucliadb_dataset/tasks.py,sha256=198o37vDlzS7OdXrHYhtwI8kz2WHWJnxpholh-rtTPQ,6227
|
|
12
12
|
nucliadb_dataset/tests/__init__.py,sha256=zG33bUz1rHFPtvqQPWn4rDwBJt3FJodGuQYD45quiQg,583
|
|
13
|
-
nucliadb_dataset/tests/fixtures.py,sha256=
|
|
14
|
-
nucliadb_dataset-6.9.5.
|
|
15
|
-
nucliadb_dataset-6.9.5.
|
|
16
|
-
nucliadb_dataset-6.9.5.
|
|
17
|
-
nucliadb_dataset-6.9.5.
|
|
18
|
-
nucliadb_dataset-6.9.5.
|
|
13
|
+
nucliadb_dataset/tests/fixtures.py,sha256=t2FpvS54i2zT4QxqViZkr8V6YjFN4u4Dshu-PW7kAvI,7373
|
|
14
|
+
nucliadb_dataset-6.9.5.post5403.dist-info/METADATA,sha256=oYqlYLhlXcNtetN3U8qZfWsZKmWiGtGunn4WNDQRYhk,1214
|
|
15
|
+
nucliadb_dataset-6.9.5.post5403.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
16
|
+
nucliadb_dataset-6.9.5.post5403.dist-info/entry_points.txt,sha256=ORrWnn6AUFfHGY1fWPRPTz99KV_pXXwttZAopyT8qvQ,60
|
|
17
|
+
nucliadb_dataset-6.9.5.post5403.dist-info/top_level.txt,sha256=aJtDe54tz6060E0uyk1rdTRAU4FPWo5if1fYFQGvdqU,17
|
|
18
|
+
nucliadb_dataset-6.9.5.post5403.dist-info/RECORD,,
|
{nucliadb_dataset-6.9.5.post5388.dist-info → nucliadb_dataset-6.9.5.post5403.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|