Skip to content

Commit efed439

Browse files
Merge pull request #849 from Labelbox/develop
Release V3.36.1
2 parents 1cca200 + cbe80f0 commit efed439

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
# Version 3.36.1 (2023-01-24)
4+
### Fixed
5+
* `confidence` is now optional for TextEntity
6+
37
# Version 3.36.0 (2023-01-23)
48
### Fixed
59
* `confidence` attribute is now supported for TextEntity and Line predictions

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
copyright = '2021, Labelbox'
2222
author = 'Labelbox'
2323

24-
release = '3.36.0'
24+
release = '3.36.1'
2525

2626
# -- General configuration ---------------------------------------------------
2727

labelbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "labelbox"
2-
__version__ = "3.36.0"
2+
__version__ = "3.36.1"
33

44
from labelbox.client import Client
55
from labelbox.schema.project import Project

labelbox/data/serialization/ndjson/objects.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -352,11 +352,14 @@ def to_common(self) -> TextEntity:
352352
return TextEntity(start=self.location.start, end=self.location.end)
353353

354354
@classmethod
355-
def from_common(cls, text_entity: TextEntity,
356-
classifications: List[ClassificationAnnotation], name: str,
357-
feature_schema_id: Cuid, extra: Dict[str, Any],
358-
data: Union[ImageData,
359-
TextData], confidence: float) -> "NDTextEntity":
355+
def from_common(cls,
356+
text_entity: TextEntity,
357+
classifications: List[ClassificationAnnotation],
358+
name: str,
359+
feature_schema_id: Cuid,
360+
extra: Dict[str, Any],
361+
data: Union[ImageData, TextData],
362+
confidence: Optional[float] = None) -> "NDTextEntity":
360363
return cls(location=Location(
361364
start=text_entity.start,
362365
end=text_entity.end,

tests/data/serialization/ndjson/test_text_entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"tests/data/assets/ndjson/text_entity_without_confidence_import.json"
1111
])
1212
def test_text_entity_import(filename: str):
13-
with open('tests/data/assets/ndjson/text_entity_import.json', 'r') as file:
13+
with open(filename, 'r') as file:
1414
data = json.load(file)
1515
res = NDJsonConverter.deserialize(data).as_list()
1616
res = list(NDJsonConverter.serialize(res))

0 commit comments

Comments
 (0)