-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Hey,
I am trying to get news with the Python API for a given company, using its concept uri. For many companies I have tried, the concept search worked, but for few companies I encountered the following error:
Provided uri is not valid concept uri.
For instance, for this company, I am running the following commands:
concept_uri = er.getConceptUri(conceptLabel='Amer International Group')
# the result is 'http://en.wikipedia.org/wiki/Amer_International_Group'
er.getConceptInfo(concept_uri)
This throws an error:
Out[13]: {'http://en.wikipedia.org/wiki/Amer_International_Group': {'error': "Provided uri ('http://en.wikipedia.org/wiki/Amer_International_Group') is not valid concept uri."}}
If I understand correctly, there are several legal entity types on Wikipedia for different types of organizations, so in order to cover these cases, should I use something like this?
concept_uri = er.getConceptUri(conceptLabel='Amer International Group', sources=['org', 'private', 'public', 'limited partnership'])
In the code documentation of the getConceptUri
function I can only see this possible input for concept sources:
loc, org, wiki, person
Could you please let me know if these are the current types of sources or whether I can/should use other types of pages from Wikipedia?
Thanks