Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
  • Loading branch information
xiangyan99 committed Feb 29, 2024
commit 38f3b35d62e6920a378dc8bdb7713be4f664fe8f
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,19 @@ def from_dict(
"""
return cls._from_generated(_SearchIndexerSkillset.from_dict(data, content_type=content_type))

def __eq__(self, other: Any) -> bool:
"""Compare objects by comparing all attributes."""
if isinstance(other, self.__class__):
return self.__dict__ == other.__dict__
return False

def __ne__(self, other: Any) -> bool:
"""Compare objects by comparing all attributes."""
return not self.__eq__(other)

def __str__(self) -> str:
return str(self.__dict__)


class EntityRecognitionSkillVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Specifies the Entity Recognition skill version to use."""
Expand Down Expand Up @@ -516,6 +529,19 @@ def from_dict(
"""
return cls._from_analyze_request(AnalyzeRequest.from_dict(data, content_type=content_type))

def __eq__(self, other: Any) -> bool:
"""Compare objects by comparing all attributes."""
if isinstance(other, self.__class__):
return self.__dict__ == other.__dict__
return False

def __ne__(self, other: Any) -> bool:
"""Compare objects by comparing all attributes."""
return not self.__eq__(other)

def __str__(self) -> str:
return str(self.__dict__)


class CustomAnalyzer(LexicalAnalyzer):
"""Allows you to take control over the process of converting text into indexable/searchable tokens.
Expand Down