nucliadb-models 6.3.4.post3656__py3-none-any.whl → 6.3.4.post3675__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.
Potentially problematic release.
This version of nucliadb-models might be problematic. Click here for more details.
- nucliadb_models/conversation.py +2 -0
- nucliadb_models/labels.py +13 -0
- nucliadb_models/link.py +3 -0
- nucliadb_models/text.py +2 -0
- {nucliadb_models-6.3.4.post3656.dist-info → nucliadb_models-6.3.4.post3675.dist-info}/METADATA +1 -1
- {nucliadb_models-6.3.4.post3656.dist-info → nucliadb_models-6.3.4.post3675.dist-info}/RECORD +8 -8
- {nucliadb_models-6.3.4.post3656.dist-info → nucliadb_models-6.3.4.post3675.dist-info}/WHEEL +1 -1
- {nucliadb_models-6.3.4.post3656.dist-info → nucliadb_models-6.3.4.post3675.dist-info}/top_level.txt +0 -0
nucliadb_models/conversation.py
CHANGED
|
@@ -24,6 +24,7 @@ from typing import List, Optional
|
|
|
24
24
|
from pydantic import BaseModel, Field, field_validator
|
|
25
25
|
|
|
26
26
|
from nucliadb_models import CloudLink, FieldRef, FileB64
|
|
27
|
+
from nucliadb_models.labels import ClassificationLabel
|
|
27
28
|
from nucliadb_models.utils import DateTime
|
|
28
29
|
|
|
29
30
|
# Shared classes
|
|
@@ -144,3 +145,4 @@ class PushMessage(BaseModel):
|
|
|
144
145
|
|
|
145
146
|
class PushConversation(BaseModel):
|
|
146
147
|
messages: List[PushMessage] = []
|
|
148
|
+
classification_labels: list[ClassificationLabel] = []
|
nucliadb_models/labels.py
CHANGED
|
@@ -129,3 +129,16 @@ class LabelSet(BaseModel):
|
|
|
129
129
|
class KnowledgeBoxLabels(BaseModel):
|
|
130
130
|
uuid: str
|
|
131
131
|
labelsets: Dict[str, LabelSet] = {}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
class ClassificationLabel(BaseModel):
|
|
135
|
+
"""
|
|
136
|
+
NOTE: This model is used to send the labels of each field in the processing requests.
|
|
137
|
+
It is a rath is not meant to be used by api users.
|
|
138
|
+
"""
|
|
139
|
+
|
|
140
|
+
labelset: str
|
|
141
|
+
label: str
|
|
142
|
+
|
|
143
|
+
def __hash__(self):
|
|
144
|
+
return hash((self.labelset, self.label))
|
nucliadb_models/link.py
CHANGED
|
@@ -22,6 +22,8 @@ from typing import Dict, Optional
|
|
|
22
22
|
|
|
23
23
|
from pydantic import BaseModel, Field
|
|
24
24
|
|
|
25
|
+
from nucliadb_models.labels import ClassificationLabel
|
|
26
|
+
|
|
25
27
|
# Shared classes
|
|
26
28
|
|
|
27
29
|
# NOTHING TO SEE HERE
|
|
@@ -80,3 +82,4 @@ class LinkUpload(BaseModel):
|
|
|
80
82
|
description="Xpath to parse the link",
|
|
81
83
|
)
|
|
82
84
|
extract_strategy: Optional[str] = None
|
|
85
|
+
classification_labels: list[ClassificationLabel] = []
|
nucliadb_models/text.py
CHANGED
|
@@ -23,6 +23,7 @@ from typing import Optional
|
|
|
23
23
|
from pydantic import BaseModel, Field, model_validator
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
+
from nucliadb_models.labels import ClassificationLabel
|
|
26
27
|
from nucliadb_models.utils import validate_json
|
|
27
28
|
|
|
28
29
|
MB = 1024 * 1024
|
|
@@ -111,3 +112,4 @@ class Text(BaseModel):
|
|
|
111
112
|
body: str
|
|
112
113
|
format: PushTextFormat
|
|
113
114
|
extract_strategy: Optional[str] = None
|
|
115
|
+
classification_labels: list[ClassificationLabel] = []
|
{nucliadb_models-6.3.4.post3656.dist-info → nucliadb_models-6.3.4.post3675.dist-info}/RECORD
RENAMED
|
@@ -2,15 +2,15 @@ nucliadb_models/__init__.py,sha256=qSmhNKACMwdbU1rklMWlmJKmlRaWvrSksTtwEVkiydQ,1
|
|
|
2
2
|
nucliadb_models/common.py,sha256=JEEY7_AxRCBPHUF6J8XptR_QnGEjRBd02Kqm5WOySYc,7828
|
|
3
3
|
nucliadb_models/configuration.py,sha256=7iUgSCkmFinu6clCfT54P5tuz5Lvf6eJVmahYjwI7qk,2525
|
|
4
4
|
nucliadb_models/content_types.py,sha256=2B3TJpPYJqd-9xGiNiHJFngSIrVyNsZlN4PeB-HafIk,3682
|
|
5
|
-
nucliadb_models/conversation.py,sha256=
|
|
5
|
+
nucliadb_models/conversation.py,sha256=tLeVnii6yvQ7C_1oMzeXTGu3354cSLSlTo6Chv0SKtY,3989
|
|
6
6
|
nucliadb_models/entities.py,sha256=IqsbF0dSCWkp222sd_R2Ste0iG1eoBPNh1Fh6mNVcu0,2608
|
|
7
7
|
nucliadb_models/export_import.py,sha256=A1KTjwQCRtyVAWcgabXsdltI78rauXBmZX1ie6Rx_pQ,1325
|
|
8
8
|
nucliadb_models/external_index_providers.py,sha256=aVyj-P4kVqfqPjF13E_lUM0FZsq8-DTbIsh-kHOgt2s,1787
|
|
9
9
|
nucliadb_models/extracted.py,sha256=wnTjMsSPk1iZFtn4eFrBC9fSOZkNTeHQ_B9CRyaL0cA,6444
|
|
10
10
|
nucliadb_models/file.py,sha256=4pDfQtXaBNB-ExeXC7NIdt33RbJp_u53_x8ACVkHXCM,2174
|
|
11
11
|
nucliadb_models/filters.py,sha256=mHep1AnMrrmity-M0Kb4rdYei8sAO6F6kWu2HVI6g8A,13199
|
|
12
|
-
nucliadb_models/labels.py,sha256=
|
|
13
|
-
nucliadb_models/link.py,sha256=
|
|
12
|
+
nucliadb_models/labels.py,sha256=AGNVzvt-FUQlTBiBCV-w4Lpq4Hey0b_jqhGzkrFbtFg,4510
|
|
13
|
+
nucliadb_models/link.py,sha256=GDCBREpMFEPmIjvf56zlU9quxI8j4NnlhsaEYWxCHqU,2899
|
|
14
14
|
nucliadb_models/metadata.py,sha256=fiIJfht0Eg5a65ud2FdmHzElZ8VGdrDQ-F65-VJI4IE,8151
|
|
15
15
|
nucliadb_models/notifications.py,sha256=jr2J3zncs880jYf2oZHYt0VFcnlZevsbkyX69ovTah8,4271
|
|
16
16
|
nucliadb_models/processing.py,sha256=UeU-VxbBlOzkNxviOS3a0X_k7Ye-jYu3UOdGuu21M8M,971
|
|
@@ -19,7 +19,7 @@ nucliadb_models/resource.py,sha256=cjYloaRuCJFc3lGIxLZcX959oOq_N1f3V9bpPMYv4WA,9
|
|
|
19
19
|
nucliadb_models/search.py,sha256=gfoJvW1rkPmHCYPWRa-3TMqDJB5ANDyCtjgrD3K0NpQ,82051
|
|
20
20
|
nucliadb_models/security.py,sha256=RewdzQ55nPZ9V7B0NX9KHeWg6B4Hg_RkeiFv2TQyrjs,1402
|
|
21
21
|
nucliadb_models/synonyms.py,sha256=qXTPHfspMgw22hCjAOdFOIoUsRZ7Ju3JW-Lw9Nz4VaI,942
|
|
22
|
-
nucliadb_models/text.py,sha256=
|
|
22
|
+
nucliadb_models/text.py,sha256=EdKn90H9wIEIclH_ZQ9casLF3C6D0oxC53RBtMe4Pew,3604
|
|
23
23
|
nucliadb_models/trainset.py,sha256=bJMnL9vvbVqicERRsrogPXYjMmqelBSAWdTEWPW_xME,933
|
|
24
24
|
nucliadb_models/utils.py,sha256=ndsLMxu9XWvJcCTT-1THJasr3EfZVAx2JtxmcU6F7mA,2651
|
|
25
25
|
nucliadb_models/vectors.py,sha256=hDrvUag4WpmQkM8rN5v868IlKSNpVc9OEddJxaxuYws,748
|
|
@@ -32,7 +32,7 @@ nucliadb_models/graph/responses.py,sha256=UXDwFY4va6p6T3kgNJSA4iZ7PrLBR5ibyXw_mo
|
|
|
32
32
|
nucliadb_models/internal/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
|
33
33
|
nucliadb_models/internal/predict.py,sha256=5rgUPrH_98gerySOZ-TR2PX_qzCGF1_8VxyOu3bGhis,2281
|
|
34
34
|
nucliadb_models/internal/shards.py,sha256=uZLsMkYWrJDHq3xy_w7snSeV2X3aDBuht9GC_MG3sKc,1976
|
|
35
|
-
nucliadb_models-6.3.4.
|
|
36
|
-
nucliadb_models-6.3.4.
|
|
37
|
-
nucliadb_models-6.3.4.
|
|
38
|
-
nucliadb_models-6.3.4.
|
|
35
|
+
nucliadb_models-6.3.4.post3675.dist-info/METADATA,sha256=8vRTewKkgAZWAudQ2T7zfC9xQyRvGloC_R6y3kEIYMg,759
|
|
36
|
+
nucliadb_models-6.3.4.post3675.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
|
|
37
|
+
nucliadb_models-6.3.4.post3675.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
|
|
38
|
+
nucliadb_models-6.3.4.post3675.dist-info/RECORD,,
|
{nucliadb_models-6.3.4.post3656.dist-info → nucliadb_models-6.3.4.post3675.dist-info}/top_level.txt
RENAMED
|
File without changes
|