kodexa 7.0.8618070181__py3-none-any.whl → 7.0.8621391210__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.
- kodexa/model/model.py +3 -1
- {kodexa-7.0.8618070181.dist-info → kodexa-7.0.8621391210.dist-info}/METADATA +1 -1
- {kodexa-7.0.8618070181.dist-info → kodexa-7.0.8621391210.dist-info}/RECORD +5 -5
- {kodexa-7.0.8618070181.dist-info → kodexa-7.0.8621391210.dist-info}/LICENSE +0 -0
- {kodexa-7.0.8618070181.dist-info → kodexa-7.0.8621391210.dist-info}/WHEEL +0 -0
kodexa/model/model.py
CHANGED
@@ -176,6 +176,8 @@ class Tag(Dict):
|
|
176
176
|
**kwargs,
|
177
177
|
):
|
178
178
|
super().__init__(*args, **kwargs)
|
179
|
+
|
180
|
+
import uuid as uuid_gen
|
179
181
|
self.start: Optional[int] = start
|
180
182
|
"""The start position (zero indexed) of the content within the node, if None then label is applied to the whole node"""
|
181
183
|
self.end: Optional[int] = end
|
@@ -184,7 +186,7 @@ class Tag(Dict):
|
|
184
186
|
"""A string representing the value that was labelled in the node"""
|
185
187
|
self.data: Optional[Any] = data
|
186
188
|
"""Any data object (JSON serializable) that you wish to associate with the label"""
|
187
|
-
self.uuid: Optional[str] = uuid or str(
|
189
|
+
self.uuid: Optional[str] = uuid or str(uuid_gen.uuid4())
|
188
190
|
"""The UUID for this tag instance, this allows tags that are on different content nodes to be related through the same UUID"""
|
189
191
|
self.confidence: Optional[float] = confidence
|
190
192
|
"""The confidence of the tag in a range of 0-1"""
|
@@ -5,7 +5,7 @@ kodexa/connectors/__init__.py,sha256=WF6G_MUeU32TlKSUKkpNoNX7dq8iBPliFMep4E8BmZc
|
|
5
5
|
kodexa/connectors/connectors.py,sha256=FpUZDkSyHld2b9eYRuVOWzaFtuGoaRuPXXicJB7THbc,10413
|
6
6
|
kodexa/model/__init__.py,sha256=rtLXYJBxB-rnukhslN9rlqoB3--1H3253HyHGbD_Gc8,796
|
7
7
|
kodexa/model/base.py,sha256=CaZK8nMhT1LdCpt4aLhebJGcorjq9qRID1FjnXnP14M,521
|
8
|
-
kodexa/model/model.py,sha256=
|
8
|
+
kodexa/model/model.py,sha256=wsIWZ49SWoNFai3QlIgkZ1Ynq0RBdYP8xxush5dH9PA,115528
|
9
9
|
kodexa/model/objects.py,sha256=LhxPUOH3krEuom6pHJhO1ukxWKzX8SxzUCfwGx3WQP0,174857
|
10
10
|
kodexa/model/persistence.py,sha256=8VV3keo1otGZhc3YDDvcGJPpUq4nXzXRZWW4ahKnusU,61967
|
11
11
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
@@ -35,7 +35,7 @@ kodexa/testing/test_components.py,sha256=g5lP-GY0nTHuH5cIEw45vIejEeBaWkPKQGHL36j
|
|
35
35
|
kodexa/testing/test_utils.py,sha256=DrLCkHxdb6AbZ-X3WmTMbQmnVIm55VEBL8MjtUK9POs,14021
|
36
36
|
kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
|
37
37
|
kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
|
-
kodexa-7.0.
|
39
|
-
kodexa-7.0.
|
40
|
-
kodexa-7.0.
|
41
|
-
kodexa-7.0.
|
38
|
+
kodexa-7.0.8621391210.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
39
|
+
kodexa-7.0.8621391210.dist-info/METADATA,sha256=HPMGlRfAZ-IArgZY6IFWwVZh2UzvvfV0OwAzx0thvXs,3493
|
40
|
+
kodexa-7.0.8621391210.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
41
|
+
kodexa-7.0.8621391210.dist-info/RECORD,,
|
File without changes
|
File without changes
|