diff --git a/CHANGELOG.md b/CHANGELOG.md index 961a0e6c4..a2912d037 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +# Version 3.0.1 (2021-08-12) +## Fix +* Issue with inferring text type from export + # Version 3.0.0 (2021-08-12) ## Added * Annotation types diff --git a/labelbox/__init__.py b/labelbox/__init__.py index 0fdd4181b..9f15dc69d 100644 --- a/labelbox/__init__.py +++ b/labelbox/__init__.py @@ -1,5 +1,5 @@ name = "labelbox" -__version__ = "3.0.0" +__version__ = "3.0.1" from labelbox.schema.project import Project from labelbox.client import Client diff --git a/labelbox/data/serialization/labelbox_v1/label.py b/labelbox/data/serialization/labelbox_v1/label.py index bd7750a82..ce9b49bee 100644 --- a/labelbox/data/serialization/labelbox_v1/label.py +++ b/labelbox/data/serialization/labelbox_v1/label.py @@ -9,9 +9,8 @@ VideoObjectAnnotation) from ...annotation_types.data import ImageData, TextData, VideoData from ...annotation_types.label import Label -from ...annotation_types.ner import TextEntity from .classification import LBV1Classifications -from .objects import LBV1Objects +from .objects import LBV1Objects, LBV1TextEntity class LBV1LabelAnnotations(LBV1Classifications, LBV1Objects): @@ -220,7 +219,7 @@ def _has_object_annotations(self): def _has_text_annotations(self): return len([ annotation for annotation in self.label.objects - if isinstance(annotation, TextEntity) + if isinstance(annotation, LBV1TextEntity) ]) > 0 def _row_contains(self, substrs):