I am trying to use the Node.js SDK for the Natural Language API (@google-cloud/language
). I can successfully analyze the entities for a string as per the docs.
What I want to do is analyze the same string but using the Healthcare Natural Language API. This seems like it should just be a flag or extra parameter to the language client, but I cannot find any documentation at all about how to specify which topical language API to use.
Can this be done from within the SDK or does this require making raw requests to healthcare.googleapis.com
?
Because of the unique requirements of medical documents, the Healthcare NLP API exists separate from the general purpose NLP API.
You can analyze entities using the
analyzeEntities
API methodYou can find the documentation here and a how to guide here.