@@ -630,11 +630,11 @@ class LinkedEntity(DictMixin):
630
630
:ivar data_source: Data source used to extract entity linking,
631
631
such as Wiki/Bing etc.
632
632
:vartype data_source: str
633
- :ivar str bing_id : Bing unique identifier of the recognized entity. Use in conjunction
633
+ :ivar str bing_entity_search_api_id : Bing unique identifier of the recognized entity. Use in conjunction
634
634
with the Bing Entity Search SDK to fetch additional relevant information. Only
635
635
available for API version v3.1-preview.2 and up.
636
636
.. versionadded:: v3.1-preview.2
637
- The *bing_id * property.
637
+ The *bing_entity_search_api_id * property.
638
638
"""
639
639
640
640
def __init__ (self , ** kwargs ):
@@ -644,31 +644,31 @@ def __init__(self, **kwargs):
644
644
self .data_source_entity_id = kwargs .get ("data_source_entity_id" , None )
645
645
self .url = kwargs .get ("url" , None )
646
646
self .data_source = kwargs .get ("data_source" , None )
647
- self .bing_id = kwargs .get ("bing_id " , None )
647
+ self .bing_entity_search_api_id = kwargs .get ("bing_entity_search_api_id " , None )
648
648
649
649
@classmethod
650
650
def _from_generated (cls , entity ):
651
- bing_id = entity .bing_id if hasattr (entity , "bing_id" ) else None
651
+ bing_entity_search_api_id = entity .bing_id if hasattr (entity , "bing_id" ) else None
652
652
return cls (
653
653
name = entity .name ,
654
654
matches = [LinkedEntityMatch ._from_generated (e ) for e in entity .matches ], # pylint: disable=protected-access
655
655
language = entity .language ,
656
656
data_source_entity_id = entity .id ,
657
657
url = entity .url ,
658
658
data_source = entity .data_source ,
659
- bing_id = bing_id ,
659
+ bing_entity_search_api_id = bing_entity_search_api_id ,
660
660
)
661
661
662
662
def __repr__ (self ):
663
663
return "LinkedEntity(name={}, matches={}, language={}, data_source_entity_id={}, url={}, " \
664
- "data_source={}, bing_id ={})" .format (
664
+ "data_source={}, bing_entity_search_api_id ={})" .format (
665
665
self .name ,
666
666
repr (self .matches ),
667
667
self .language ,
668
668
self .data_source_entity_id ,
669
669
self .url ,
670
670
self .data_source ,
671
- self .bing_id ,
671
+ self .bing_entity_search_api_id ,
672
672
)[:1024 ]
673
673
674
674
0 commit comments