A concrete example is as follows:
>>> document = {"content": "United States", "type_": "PLAIN_TEXT", "language": "EN"}
>>> response = client.analyze_entities(request = {'document': document, 'encoding_type':"UTF8"})
>>> response
entities {
name: "United States"
type_: LOCATION
metadata {
key: "mid"
value: "/m/09c7w0"
}
metadata {
key: "wikipedia_url"
value: "
https://de.wikipedia.org/wiki/Vereinigte_Staaten"
}
salience: 1.0
mentions {
text {
content: "United States"
}
type_: PROPER
}
}
language: "en"
As you can see, the returned wiki url is actually linking to the German version rather than English version (i.e.,
https://en.wikipedia.org/wiki/United_States). I think this API call used to work as expected and return English wiki url most of the time.
Does anyone know how to force the response to contain English wiki url? Appreciate any comment and suggestion.