code
stringlengths
3
6.57k
to_dict(self)
hasattr(self, 'nature')
hasattr(self, 'party')
_to_dict(self)
self.to_dict()
__str__(self)
json.dumps(self._to_dict()
__eq__(self, other: 'Label')
isinstance(other, self.__class__)
__ne__(self, other: 'Label')
LeadingSentence()
from_dict(cls, _dict: Dict)
set(_dict.keys()
set(valid_keys)
join(bad_keys)
_dict.get('text')
Location._from_dict(_dict.get('location')
ElementLocations._from_dict(x)
in (_dict.get('element_locations')
cls(**args)
_from_dict(cls, _dict)
cls.from_dict(_dict)
to_dict(self)
hasattr(self, 'text')
hasattr(self, 'location')
self.location._to_dict()
x._to_dict()
_to_dict(self)
self.to_dict()
__str__(self)
json.dumps(self._to_dict()
__eq__(self, other: 'LeadingSentence')
isinstance(other, self.__class__)
__ne__(self, other: 'LeadingSentence')
Location()
__init__(self, begin: int, end: int)
from_dict(cls, _dict: Dict)
set(_dict.keys()
set(valid_keys)
join(bad_keys)
_dict.get('begin')
_dict.get('end')
cls(**args)
_from_dict(cls, _dict)
cls.from_dict(_dict)
to_dict(self)
hasattr(self, 'begin')
hasattr(self, 'end')
_to_dict(self)
self.to_dict()
__str__(self)
json.dumps(self._to_dict()
__eq__(self, other: 'Location')
isinstance(other, self.__class__)
__ne__(self, other: 'Location')
Mention()
from_dict(cls, _dict: Dict)
set(_dict.keys()
set(valid_keys)
join(bad_keys)
_dict.get('text')
Location._from_dict(_dict.get('location')
cls(**args)
_from_dict(cls, _dict)
cls.from_dict(_dict)
to_dict(self)
hasattr(self, 'text')
hasattr(self, 'location')
self.location._to_dict()
_to_dict(self)
self.to_dict()
__str__(self)
json.dumps(self._to_dict()
__eq__(self, other: 'Mention')
isinstance(other, self.__class__)
__ne__(self, other: 'Mention')
OriginalLabelsIn()
from_dict(cls, _dict: Dict)
set(_dict.keys()
set(valid_keys)
join(bad_keys)
TypeLabel._from_dict(x)
in (_dict.get('types')
Category._from_dict(x)
in (_dict.get('categories')
cls(**args)
_from_dict(cls, _dict)
cls.from_dict(_dict)
to_dict(self)
hasattr(self, 'types')
x._to_dict()
hasattr(self, 'categories')
x._to_dict()
_to_dict(self)
self.to_dict()
__str__(self)
json.dumps(self._to_dict()
__eq__(self, other: 'OriginalLabelsIn')
isinstance(other, self.__class__)
__ne__(self, other: 'OriginalLabelsIn')