rapidata 2.1.4__py3-none-any.whl → 2.2.0__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 rapidata might be problematic. Click here for more details.
- rapidata/api_client/__init__.py +7 -0
- rapidata/api_client/models/__init__.py +7 -0
- rapidata/api_client/models/add_validation_rapid_model_payload.py +30 -16
- rapidata/api_client/models/add_validation_rapid_model_truth.py +30 -16
- rapidata/api_client/models/query_validation_rapids_result.py +29 -2
- rapidata/api_client/models/query_validation_rapids_result_payload.py +252 -0
- rapidata/api_client/models/query_validation_rapids_result_truth.py +258 -0
- rapidata/api_client/models/rapid_answer_result.py +31 -17
- rapidata/api_client/models/rapid_result_model_result.py +31 -17
- rapidata/api_client/models/scrub_payload.py +96 -0
- rapidata/api_client/models/scrub_range.py +89 -0
- rapidata/api_client/models/scrub_rapid_blueprint.py +96 -0
- rapidata/api_client/models/scrub_result.py +98 -0
- rapidata/api_client/models/scrub_truth.py +104 -0
- rapidata/api_client/models/simple_workflow_config_model_blueprint.py +30 -16
- rapidata/api_client/models/simple_workflow_model_blueprint.py +30 -16
- rapidata/api_client/models/validation_import_post_request_blueprint.py +30 -16
- rapidata/api_client_README.md +7 -0
- rapidata/rapidata_client/assets/_media_asset.py +45 -0
- rapidata/rapidata_client/order/_rapidata_dataset.py +4 -1
- rapidata/rapidata_client/order/rapidata_order_manager.py +46 -1
- rapidata/rapidata_client/selection/rapidata_selections.py +4 -2
- rapidata/rapidata_client/validation/_validation_rapid_parts.py +5 -0
- rapidata/rapidata_client/validation/_validation_set_builder.py +107 -7
- rapidata/rapidata_client/validation/rapidata_validation_set.py +4 -0
- rapidata/rapidata_client/validation/rapids/rapids.py +34 -0
- rapidata/rapidata_client/validation/rapids/rapids_manager.py +29 -1
- rapidata/rapidata_client/validation/validation_set_manager.py +50 -0
- rapidata/rapidata_client/workflow/__init__.py +1 -0
- rapidata/rapidata_client/workflow/_select_words_workflow.py +2 -2
- rapidata/rapidata_client/workflow/_timestamp_workflow.py +34 -0
- {rapidata-2.1.4.dist-info → rapidata-2.2.0.dist-info}/METADATA +2 -1
- {rapidata-2.1.4.dist-info → rapidata-2.2.0.dist-info}/RECORD +35 -27
- {rapidata-2.1.4.dist-info → rapidata-2.2.0.dist-info}/WHEEL +1 -1
- {rapidata-2.1.4.dist-info → rapidata-2.2.0.dist-info}/LICENSE +0 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictInt
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ScrubRange(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ScrubRange
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
start: StrictInt
|
|
30
|
+
end: StrictInt
|
|
31
|
+
__properties: ClassVar[List[str]] = ["start", "end"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of ScrubRange from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
+
"""Create an instance of ScrubRange from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return cls.model_validate(obj)
|
|
82
|
+
|
|
83
|
+
_obj = cls.model_validate({
|
|
84
|
+
"start": obj.get("start"),
|
|
85
|
+
"end": obj.get("end")
|
|
86
|
+
})
|
|
87
|
+
return _obj
|
|
88
|
+
|
|
89
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ScrubRapidBlueprint(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ScrubRapidBlueprint
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
t: StrictStr = Field(description="Discriminator value for ScrubBlueprint", alias="_t")
|
|
30
|
+
target: StrictStr
|
|
31
|
+
__properties: ClassVar[List[str]] = ["_t", "target"]
|
|
32
|
+
|
|
33
|
+
@field_validator('t')
|
|
34
|
+
def t_validate_enum(cls, value):
|
|
35
|
+
"""Validates the enum"""
|
|
36
|
+
if value not in set(['ScrubBlueprint']):
|
|
37
|
+
raise ValueError("must be one of enum values ('ScrubBlueprint')")
|
|
38
|
+
return value
|
|
39
|
+
|
|
40
|
+
model_config = ConfigDict(
|
|
41
|
+
populate_by_name=True,
|
|
42
|
+
validate_assignment=True,
|
|
43
|
+
protected_namespaces=(),
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def to_str(self) -> str:
|
|
48
|
+
"""Returns the string representation of the model using alias"""
|
|
49
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
50
|
+
|
|
51
|
+
def to_json(self) -> str:
|
|
52
|
+
"""Returns the JSON representation of the model using alias"""
|
|
53
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
54
|
+
return json.dumps(self.to_dict())
|
|
55
|
+
|
|
56
|
+
@classmethod
|
|
57
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
58
|
+
"""Create an instance of ScrubRapidBlueprint from a JSON string"""
|
|
59
|
+
return cls.from_dict(json.loads(json_str))
|
|
60
|
+
|
|
61
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
62
|
+
"""Return the dictionary representation of the model using alias.
|
|
63
|
+
|
|
64
|
+
This has the following differences from calling pydantic's
|
|
65
|
+
`self.model_dump(by_alias=True)`:
|
|
66
|
+
|
|
67
|
+
* `None` is only added to the output dict for nullable fields that
|
|
68
|
+
were set at model initialization. Other fields with value `None`
|
|
69
|
+
are ignored.
|
|
70
|
+
"""
|
|
71
|
+
excluded_fields: Set[str] = set([
|
|
72
|
+
])
|
|
73
|
+
|
|
74
|
+
_dict = self.model_dump(
|
|
75
|
+
by_alias=True,
|
|
76
|
+
exclude=excluded_fields,
|
|
77
|
+
exclude_none=True,
|
|
78
|
+
)
|
|
79
|
+
return _dict
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
+
"""Create an instance of ScrubRapidBlueprint from a dict"""
|
|
84
|
+
if obj is None:
|
|
85
|
+
return None
|
|
86
|
+
|
|
87
|
+
if not isinstance(obj, dict):
|
|
88
|
+
return cls.model_validate(obj)
|
|
89
|
+
|
|
90
|
+
_obj = cls.model_validate({
|
|
91
|
+
"_t": obj.get("_t") if obj.get("_t") is not None else 'ScrubBlueprint',
|
|
92
|
+
"target": obj.get("target")
|
|
93
|
+
})
|
|
94
|
+
return _obj
|
|
95
|
+
|
|
96
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ScrubResult(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ScrubResult
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
t: StrictStr = Field(description="Discriminator value for ScrubResult", alias="_t")
|
|
30
|
+
rapid_id: StrictStr = Field(alias="rapidId")
|
|
31
|
+
timestamps: List[StrictInt]
|
|
32
|
+
__properties: ClassVar[List[str]] = ["_t", "rapidId", "timestamps"]
|
|
33
|
+
|
|
34
|
+
@field_validator('t')
|
|
35
|
+
def t_validate_enum(cls, value):
|
|
36
|
+
"""Validates the enum"""
|
|
37
|
+
if value not in set(['ScrubResult']):
|
|
38
|
+
raise ValueError("must be one of enum values ('ScrubResult')")
|
|
39
|
+
return value
|
|
40
|
+
|
|
41
|
+
model_config = ConfigDict(
|
|
42
|
+
populate_by_name=True,
|
|
43
|
+
validate_assignment=True,
|
|
44
|
+
protected_namespaces=(),
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def to_str(self) -> str:
|
|
49
|
+
"""Returns the string representation of the model using alias"""
|
|
50
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
51
|
+
|
|
52
|
+
def to_json(self) -> str:
|
|
53
|
+
"""Returns the JSON representation of the model using alias"""
|
|
54
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
55
|
+
return json.dumps(self.to_dict())
|
|
56
|
+
|
|
57
|
+
@classmethod
|
|
58
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
59
|
+
"""Create an instance of ScrubResult from a JSON string"""
|
|
60
|
+
return cls.from_dict(json.loads(json_str))
|
|
61
|
+
|
|
62
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
63
|
+
"""Return the dictionary representation of the model using alias.
|
|
64
|
+
|
|
65
|
+
This has the following differences from calling pydantic's
|
|
66
|
+
`self.model_dump(by_alias=True)`:
|
|
67
|
+
|
|
68
|
+
* `None` is only added to the output dict for nullable fields that
|
|
69
|
+
were set at model initialization. Other fields with value `None`
|
|
70
|
+
are ignored.
|
|
71
|
+
"""
|
|
72
|
+
excluded_fields: Set[str] = set([
|
|
73
|
+
])
|
|
74
|
+
|
|
75
|
+
_dict = self.model_dump(
|
|
76
|
+
by_alias=True,
|
|
77
|
+
exclude=excluded_fields,
|
|
78
|
+
exclude_none=True,
|
|
79
|
+
)
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of ScrubResult from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"_t": obj.get("_t") if obj.get("_t") is not None else 'ScrubResult',
|
|
93
|
+
"rapidId": obj.get("rapidId"),
|
|
94
|
+
"timestamps": obj.get("timestamps")
|
|
95
|
+
})
|
|
96
|
+
return _obj
|
|
97
|
+
|
|
98
|
+
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from rapidata.api_client.models.scrub_range import ScrubRange
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class ScrubTruth(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
ScrubTruth
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
t: StrictStr = Field(description="Discriminator value for ScrubTruth", alias="_t")
|
|
31
|
+
valid_ranges: List[ScrubRange] = Field(alias="validRanges")
|
|
32
|
+
__properties: ClassVar[List[str]] = ["_t", "validRanges"]
|
|
33
|
+
|
|
34
|
+
@field_validator('t')
|
|
35
|
+
def t_validate_enum(cls, value):
|
|
36
|
+
"""Validates the enum"""
|
|
37
|
+
if value not in set(['ScrubTruth']):
|
|
38
|
+
raise ValueError("must be one of enum values ('ScrubTruth')")
|
|
39
|
+
return value
|
|
40
|
+
|
|
41
|
+
model_config = ConfigDict(
|
|
42
|
+
populate_by_name=True,
|
|
43
|
+
validate_assignment=True,
|
|
44
|
+
protected_namespaces=(),
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def to_str(self) -> str:
|
|
49
|
+
"""Returns the string representation of the model using alias"""
|
|
50
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
51
|
+
|
|
52
|
+
def to_json(self) -> str:
|
|
53
|
+
"""Returns the JSON representation of the model using alias"""
|
|
54
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
55
|
+
return json.dumps(self.to_dict())
|
|
56
|
+
|
|
57
|
+
@classmethod
|
|
58
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
59
|
+
"""Create an instance of ScrubTruth from a JSON string"""
|
|
60
|
+
return cls.from_dict(json.loads(json_str))
|
|
61
|
+
|
|
62
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
63
|
+
"""Return the dictionary representation of the model using alias.
|
|
64
|
+
|
|
65
|
+
This has the following differences from calling pydantic's
|
|
66
|
+
`self.model_dump(by_alias=True)`:
|
|
67
|
+
|
|
68
|
+
* `None` is only added to the output dict for nullable fields that
|
|
69
|
+
were set at model initialization. Other fields with value `None`
|
|
70
|
+
are ignored.
|
|
71
|
+
"""
|
|
72
|
+
excluded_fields: Set[str] = set([
|
|
73
|
+
])
|
|
74
|
+
|
|
75
|
+
_dict = self.model_dump(
|
|
76
|
+
by_alias=True,
|
|
77
|
+
exclude=excluded_fields,
|
|
78
|
+
exclude_none=True,
|
|
79
|
+
)
|
|
80
|
+
# override the default output from pydantic by calling `to_dict()` of each item in valid_ranges (list)
|
|
81
|
+
_items = []
|
|
82
|
+
if self.valid_ranges:
|
|
83
|
+
for _item_valid_ranges in self.valid_ranges:
|
|
84
|
+
if _item_valid_ranges:
|
|
85
|
+
_items.append(_item_valid_ranges.to_dict())
|
|
86
|
+
_dict['validRanges'] = _items
|
|
87
|
+
return _dict
|
|
88
|
+
|
|
89
|
+
@classmethod
|
|
90
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
91
|
+
"""Create an instance of ScrubTruth from a dict"""
|
|
92
|
+
if obj is None:
|
|
93
|
+
return None
|
|
94
|
+
|
|
95
|
+
if not isinstance(obj, dict):
|
|
96
|
+
return cls.model_validate(obj)
|
|
97
|
+
|
|
98
|
+
_obj = cls.model_validate({
|
|
99
|
+
"_t": obj.get("_t") if obj.get("_t") is not None else 'ScrubTruth',
|
|
100
|
+
"validRanges": [ScrubRange.from_dict(_item) for _item in obj["validRanges"]] if obj.get("validRanges") is not None else None
|
|
101
|
+
})
|
|
102
|
+
return _obj
|
|
103
|
+
|
|
104
|
+
|
|
@@ -25,12 +25,13 @@ from rapidata.api_client.models.line_rapid_blueprint import LineRapidBlueprint
|
|
|
25
25
|
from rapidata.api_client.models.locate_rapid_blueprint import LocateRapidBlueprint
|
|
26
26
|
from rapidata.api_client.models.named_entity_rapid_blueprint import NamedEntityRapidBlueprint
|
|
27
27
|
from rapidata.api_client.models.polygon_rapid_blueprint import PolygonRapidBlueprint
|
|
28
|
+
from rapidata.api_client.models.scrub_rapid_blueprint import ScrubRapidBlueprint
|
|
28
29
|
from rapidata.api_client.models.transcription_rapid_blueprint import TranscriptionRapidBlueprint
|
|
29
30
|
from pydantic import StrictStr, Field
|
|
30
31
|
from typing import Union, List, Set, Optional, Dict
|
|
31
32
|
from typing_extensions import Literal, Self
|
|
32
33
|
|
|
33
|
-
SIMPLEWORKFLOWCONFIGMODELBLUEPRINT_ONE_OF_SCHEMAS = ["AttachCategoryRapidBlueprint", "BoundingBoxRapidBlueprint", "CompareRapidBlueprint", "FreeTextRapidBlueprint", "LineRapidBlueprint", "LocateRapidBlueprint", "NamedEntityRapidBlueprint", "PolygonRapidBlueprint", "TranscriptionRapidBlueprint"]
|
|
34
|
+
SIMPLEWORKFLOWCONFIGMODELBLUEPRINT_ONE_OF_SCHEMAS = ["AttachCategoryRapidBlueprint", "BoundingBoxRapidBlueprint", "CompareRapidBlueprint", "FreeTextRapidBlueprint", "LineRapidBlueprint", "LocateRapidBlueprint", "NamedEntityRapidBlueprint", "PolygonRapidBlueprint", "ScrubRapidBlueprint", "TranscriptionRapidBlueprint"]
|
|
34
35
|
|
|
35
36
|
class SimpleWorkflowConfigModelBlueprint(BaseModel):
|
|
36
37
|
"""
|
|
@@ -38,24 +39,26 @@ class SimpleWorkflowConfigModelBlueprint(BaseModel):
|
|
|
38
39
|
"""
|
|
39
40
|
# data type: TranscriptionRapidBlueprint
|
|
40
41
|
oneof_schema_1_validator: Optional[TranscriptionRapidBlueprint] = None
|
|
42
|
+
# data type: ScrubRapidBlueprint
|
|
43
|
+
oneof_schema_2_validator: Optional[ScrubRapidBlueprint] = None
|
|
41
44
|
# data type: PolygonRapidBlueprint
|
|
42
|
-
|
|
45
|
+
oneof_schema_3_validator: Optional[PolygonRapidBlueprint] = None
|
|
43
46
|
# data type: NamedEntityRapidBlueprint
|
|
44
|
-
|
|
47
|
+
oneof_schema_4_validator: Optional[NamedEntityRapidBlueprint] = None
|
|
45
48
|
# data type: LocateRapidBlueprint
|
|
46
|
-
|
|
49
|
+
oneof_schema_5_validator: Optional[LocateRapidBlueprint] = None
|
|
47
50
|
# data type: LineRapidBlueprint
|
|
48
|
-
|
|
51
|
+
oneof_schema_6_validator: Optional[LineRapidBlueprint] = None
|
|
49
52
|
# data type: FreeTextRapidBlueprint
|
|
50
|
-
|
|
53
|
+
oneof_schema_7_validator: Optional[FreeTextRapidBlueprint] = None
|
|
51
54
|
# data type: CompareRapidBlueprint
|
|
52
|
-
|
|
55
|
+
oneof_schema_8_validator: Optional[CompareRapidBlueprint] = None
|
|
53
56
|
# data type: AttachCategoryRapidBlueprint
|
|
54
|
-
|
|
57
|
+
oneof_schema_9_validator: Optional[AttachCategoryRapidBlueprint] = None
|
|
55
58
|
# data type: BoundingBoxRapidBlueprint
|
|
56
|
-
|
|
57
|
-
actual_instance: Optional[Union[AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, TranscriptionRapidBlueprint]] = None
|
|
58
|
-
one_of_schemas: Set[str] = { "AttachCategoryRapidBlueprint", "BoundingBoxRapidBlueprint", "CompareRapidBlueprint", "FreeTextRapidBlueprint", "LineRapidBlueprint", "LocateRapidBlueprint", "NamedEntityRapidBlueprint", "PolygonRapidBlueprint", "TranscriptionRapidBlueprint" }
|
|
59
|
+
oneof_schema_10_validator: Optional[BoundingBoxRapidBlueprint] = None
|
|
60
|
+
actual_instance: Optional[Union[AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, ScrubRapidBlueprint, TranscriptionRapidBlueprint]] = None
|
|
61
|
+
one_of_schemas: Set[str] = { "AttachCategoryRapidBlueprint", "BoundingBoxRapidBlueprint", "CompareRapidBlueprint", "FreeTextRapidBlueprint", "LineRapidBlueprint", "LocateRapidBlueprint", "NamedEntityRapidBlueprint", "PolygonRapidBlueprint", "ScrubRapidBlueprint", "TranscriptionRapidBlueprint" }
|
|
59
62
|
|
|
60
63
|
model_config = ConfigDict(
|
|
61
64
|
validate_assignment=True,
|
|
@@ -86,6 +89,11 @@ class SimpleWorkflowConfigModelBlueprint(BaseModel):
|
|
|
86
89
|
error_messages.append(f"Error! Input type `{type(v)}` is not `TranscriptionRapidBlueprint`")
|
|
87
90
|
else:
|
|
88
91
|
match += 1
|
|
92
|
+
# validate data type: ScrubRapidBlueprint
|
|
93
|
+
if not isinstance(v, ScrubRapidBlueprint):
|
|
94
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `ScrubRapidBlueprint`")
|
|
95
|
+
else:
|
|
96
|
+
match += 1
|
|
89
97
|
# validate data type: PolygonRapidBlueprint
|
|
90
98
|
if not isinstance(v, PolygonRapidBlueprint):
|
|
91
99
|
error_messages.append(f"Error! Input type `{type(v)}` is not `PolygonRapidBlueprint`")
|
|
@@ -128,10 +136,10 @@ class SimpleWorkflowConfigModelBlueprint(BaseModel):
|
|
|
128
136
|
match += 1
|
|
129
137
|
if match > 1:
|
|
130
138
|
# more than 1 match
|
|
131
|
-
raise ValueError("Multiple matches found when setting `actual_instance` in SimpleWorkflowConfigModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
139
|
+
raise ValueError("Multiple matches found when setting `actual_instance` in SimpleWorkflowConfigModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, ScrubRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
132
140
|
elif match == 0:
|
|
133
141
|
# no match
|
|
134
|
-
raise ValueError("No match found when setting `actual_instance` in SimpleWorkflowConfigModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
142
|
+
raise ValueError("No match found when setting `actual_instance` in SimpleWorkflowConfigModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, ScrubRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
135
143
|
else:
|
|
136
144
|
return v
|
|
137
145
|
|
|
@@ -152,6 +160,12 @@ class SimpleWorkflowConfigModelBlueprint(BaseModel):
|
|
|
152
160
|
match += 1
|
|
153
161
|
except (ValidationError, ValueError) as e:
|
|
154
162
|
error_messages.append(str(e))
|
|
163
|
+
# deserialize data into ScrubRapidBlueprint
|
|
164
|
+
try:
|
|
165
|
+
instance.actual_instance = ScrubRapidBlueprint.from_json(json_str)
|
|
166
|
+
match += 1
|
|
167
|
+
except (ValidationError, ValueError) as e:
|
|
168
|
+
error_messages.append(str(e))
|
|
155
169
|
# deserialize data into PolygonRapidBlueprint
|
|
156
170
|
try:
|
|
157
171
|
instance.actual_instance = PolygonRapidBlueprint.from_json(json_str)
|
|
@@ -203,10 +217,10 @@ class SimpleWorkflowConfigModelBlueprint(BaseModel):
|
|
|
203
217
|
|
|
204
218
|
if match > 1:
|
|
205
219
|
# more than 1 match
|
|
206
|
-
raise ValueError("Multiple matches found when deserializing the JSON string into SimpleWorkflowConfigModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
220
|
+
raise ValueError("Multiple matches found when deserializing the JSON string into SimpleWorkflowConfigModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, ScrubRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
207
221
|
elif match == 0:
|
|
208
222
|
# no match
|
|
209
|
-
raise ValueError("No match found when deserializing the JSON string into SimpleWorkflowConfigModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
223
|
+
raise ValueError("No match found when deserializing the JSON string into SimpleWorkflowConfigModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, ScrubRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
210
224
|
else:
|
|
211
225
|
return instance
|
|
212
226
|
|
|
@@ -220,7 +234,7 @@ class SimpleWorkflowConfigModelBlueprint(BaseModel):
|
|
|
220
234
|
else:
|
|
221
235
|
return json.dumps(self.actual_instance)
|
|
222
236
|
|
|
223
|
-
def to_dict(self) -> Optional[Union[Dict[str, Any], AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, TranscriptionRapidBlueprint]]:
|
|
237
|
+
def to_dict(self) -> Optional[Union[Dict[str, Any], AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, ScrubRapidBlueprint, TranscriptionRapidBlueprint]]:
|
|
224
238
|
"""Returns the dict representation of the actual instance"""
|
|
225
239
|
if self.actual_instance is None:
|
|
226
240
|
return None
|
|
@@ -25,12 +25,13 @@ from rapidata.api_client.models.line_rapid_blueprint import LineRapidBlueprint
|
|
|
25
25
|
from rapidata.api_client.models.locate_rapid_blueprint import LocateRapidBlueprint
|
|
26
26
|
from rapidata.api_client.models.named_entity_rapid_blueprint import NamedEntityRapidBlueprint
|
|
27
27
|
from rapidata.api_client.models.polygon_rapid_blueprint import PolygonRapidBlueprint
|
|
28
|
+
from rapidata.api_client.models.scrub_rapid_blueprint import ScrubRapidBlueprint
|
|
28
29
|
from rapidata.api_client.models.transcription_rapid_blueprint import TranscriptionRapidBlueprint
|
|
29
30
|
from pydantic import StrictStr, Field
|
|
30
31
|
from typing import Union, List, Set, Optional, Dict
|
|
31
32
|
from typing_extensions import Literal, Self
|
|
32
33
|
|
|
33
|
-
SIMPLEWORKFLOWMODELBLUEPRINT_ONE_OF_SCHEMAS = ["AttachCategoryRapidBlueprint", "BoundingBoxRapidBlueprint", "CompareRapidBlueprint", "FreeTextRapidBlueprint", "LineRapidBlueprint", "LocateRapidBlueprint", "NamedEntityRapidBlueprint", "PolygonRapidBlueprint", "TranscriptionRapidBlueprint"]
|
|
34
|
+
SIMPLEWORKFLOWMODELBLUEPRINT_ONE_OF_SCHEMAS = ["AttachCategoryRapidBlueprint", "BoundingBoxRapidBlueprint", "CompareRapidBlueprint", "FreeTextRapidBlueprint", "LineRapidBlueprint", "LocateRapidBlueprint", "NamedEntityRapidBlueprint", "PolygonRapidBlueprint", "ScrubRapidBlueprint", "TranscriptionRapidBlueprint"]
|
|
34
35
|
|
|
35
36
|
class SimpleWorkflowModelBlueprint(BaseModel):
|
|
36
37
|
"""
|
|
@@ -38,24 +39,26 @@ class SimpleWorkflowModelBlueprint(BaseModel):
|
|
|
38
39
|
"""
|
|
39
40
|
# data type: TranscriptionRapidBlueprint
|
|
40
41
|
oneof_schema_1_validator: Optional[TranscriptionRapidBlueprint] = None
|
|
42
|
+
# data type: ScrubRapidBlueprint
|
|
43
|
+
oneof_schema_2_validator: Optional[ScrubRapidBlueprint] = None
|
|
41
44
|
# data type: PolygonRapidBlueprint
|
|
42
|
-
|
|
45
|
+
oneof_schema_3_validator: Optional[PolygonRapidBlueprint] = None
|
|
43
46
|
# data type: NamedEntityRapidBlueprint
|
|
44
|
-
|
|
47
|
+
oneof_schema_4_validator: Optional[NamedEntityRapidBlueprint] = None
|
|
45
48
|
# data type: LocateRapidBlueprint
|
|
46
|
-
|
|
49
|
+
oneof_schema_5_validator: Optional[LocateRapidBlueprint] = None
|
|
47
50
|
# data type: LineRapidBlueprint
|
|
48
|
-
|
|
51
|
+
oneof_schema_6_validator: Optional[LineRapidBlueprint] = None
|
|
49
52
|
# data type: FreeTextRapidBlueprint
|
|
50
|
-
|
|
53
|
+
oneof_schema_7_validator: Optional[FreeTextRapidBlueprint] = None
|
|
51
54
|
# data type: CompareRapidBlueprint
|
|
52
|
-
|
|
55
|
+
oneof_schema_8_validator: Optional[CompareRapidBlueprint] = None
|
|
53
56
|
# data type: AttachCategoryRapidBlueprint
|
|
54
|
-
|
|
57
|
+
oneof_schema_9_validator: Optional[AttachCategoryRapidBlueprint] = None
|
|
55
58
|
# data type: BoundingBoxRapidBlueprint
|
|
56
|
-
|
|
57
|
-
actual_instance: Optional[Union[AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, TranscriptionRapidBlueprint]] = None
|
|
58
|
-
one_of_schemas: Set[str] = { "AttachCategoryRapidBlueprint", "BoundingBoxRapidBlueprint", "CompareRapidBlueprint", "FreeTextRapidBlueprint", "LineRapidBlueprint", "LocateRapidBlueprint", "NamedEntityRapidBlueprint", "PolygonRapidBlueprint", "TranscriptionRapidBlueprint" }
|
|
59
|
+
oneof_schema_10_validator: Optional[BoundingBoxRapidBlueprint] = None
|
|
60
|
+
actual_instance: Optional[Union[AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, ScrubRapidBlueprint, TranscriptionRapidBlueprint]] = None
|
|
61
|
+
one_of_schemas: Set[str] = { "AttachCategoryRapidBlueprint", "BoundingBoxRapidBlueprint", "CompareRapidBlueprint", "FreeTextRapidBlueprint", "LineRapidBlueprint", "LocateRapidBlueprint", "NamedEntityRapidBlueprint", "PolygonRapidBlueprint", "ScrubRapidBlueprint", "TranscriptionRapidBlueprint" }
|
|
59
62
|
|
|
60
63
|
model_config = ConfigDict(
|
|
61
64
|
validate_assignment=True,
|
|
@@ -86,6 +89,11 @@ class SimpleWorkflowModelBlueprint(BaseModel):
|
|
|
86
89
|
error_messages.append(f"Error! Input type `{type(v)}` is not `TranscriptionRapidBlueprint`")
|
|
87
90
|
else:
|
|
88
91
|
match += 1
|
|
92
|
+
# validate data type: ScrubRapidBlueprint
|
|
93
|
+
if not isinstance(v, ScrubRapidBlueprint):
|
|
94
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `ScrubRapidBlueprint`")
|
|
95
|
+
else:
|
|
96
|
+
match += 1
|
|
89
97
|
# validate data type: PolygonRapidBlueprint
|
|
90
98
|
if not isinstance(v, PolygonRapidBlueprint):
|
|
91
99
|
error_messages.append(f"Error! Input type `{type(v)}` is not `PolygonRapidBlueprint`")
|
|
@@ -128,10 +136,10 @@ class SimpleWorkflowModelBlueprint(BaseModel):
|
|
|
128
136
|
match += 1
|
|
129
137
|
if match > 1:
|
|
130
138
|
# more than 1 match
|
|
131
|
-
raise ValueError("Multiple matches found when setting `actual_instance` in SimpleWorkflowModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
139
|
+
raise ValueError("Multiple matches found when setting `actual_instance` in SimpleWorkflowModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, ScrubRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
132
140
|
elif match == 0:
|
|
133
141
|
# no match
|
|
134
|
-
raise ValueError("No match found when setting `actual_instance` in SimpleWorkflowModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
142
|
+
raise ValueError("No match found when setting `actual_instance` in SimpleWorkflowModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, ScrubRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
135
143
|
else:
|
|
136
144
|
return v
|
|
137
145
|
|
|
@@ -152,6 +160,12 @@ class SimpleWorkflowModelBlueprint(BaseModel):
|
|
|
152
160
|
match += 1
|
|
153
161
|
except (ValidationError, ValueError) as e:
|
|
154
162
|
error_messages.append(str(e))
|
|
163
|
+
# deserialize data into ScrubRapidBlueprint
|
|
164
|
+
try:
|
|
165
|
+
instance.actual_instance = ScrubRapidBlueprint.from_json(json_str)
|
|
166
|
+
match += 1
|
|
167
|
+
except (ValidationError, ValueError) as e:
|
|
168
|
+
error_messages.append(str(e))
|
|
155
169
|
# deserialize data into PolygonRapidBlueprint
|
|
156
170
|
try:
|
|
157
171
|
instance.actual_instance = PolygonRapidBlueprint.from_json(json_str)
|
|
@@ -203,10 +217,10 @@ class SimpleWorkflowModelBlueprint(BaseModel):
|
|
|
203
217
|
|
|
204
218
|
if match > 1:
|
|
205
219
|
# more than 1 match
|
|
206
|
-
raise ValueError("Multiple matches found when deserializing the JSON string into SimpleWorkflowModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
220
|
+
raise ValueError("Multiple matches found when deserializing the JSON string into SimpleWorkflowModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, ScrubRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
207
221
|
elif match == 0:
|
|
208
222
|
# no match
|
|
209
|
-
raise ValueError("No match found when deserializing the JSON string into SimpleWorkflowModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
223
|
+
raise ValueError("No match found when deserializing the JSON string into SimpleWorkflowModelBlueprint with oneOf schemas: AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, ScrubRapidBlueprint, TranscriptionRapidBlueprint. Details: " + ", ".join(error_messages))
|
|
210
224
|
else:
|
|
211
225
|
return instance
|
|
212
226
|
|
|
@@ -220,7 +234,7 @@ class SimpleWorkflowModelBlueprint(BaseModel):
|
|
|
220
234
|
else:
|
|
221
235
|
return json.dumps(self.actual_instance)
|
|
222
236
|
|
|
223
|
-
def to_dict(self) -> Optional[Union[Dict[str, Any], AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, TranscriptionRapidBlueprint]]:
|
|
237
|
+
def to_dict(self) -> Optional[Union[Dict[str, Any], AttachCategoryRapidBlueprint, BoundingBoxRapidBlueprint, CompareRapidBlueprint, FreeTextRapidBlueprint, LineRapidBlueprint, LocateRapidBlueprint, NamedEntityRapidBlueprint, PolygonRapidBlueprint, ScrubRapidBlueprint, TranscriptionRapidBlueprint]]:
|
|
224
238
|
"""Returns the dict representation of the actual instance"""
|
|
225
239
|
if self.actual_instance is None:
|
|
226
240
|
return None
|