code: def annotate(text, gcube_token=None, lang=DEFAULT_LANG, api=DEFAULT_TAG_API,
               long_text=DEFAULT_LONG_TEXT):
      '''
      Annotate a text, linking it to Wikipedia entities.
      :param text: the text to annotate.
      :param gcube_token: the authentication token provided by the D4Science infrastructure.
      :param lang: the Wikipedia language.
      :param api: the API endpoint.
      :param long_text: long_text parameter (see TagMe documentation).
      '''
      payload = [("text", text.encode("utf-8")),
                 ("long_text", long_text),
                 ("lang", lang)]
      json_response = _issue_request(api, payload, gcube_token)
      return AnnotateResponse(json_response) if json_response else Nonf annotate(text, gcube_token=None, lang=DEFAULT_LANG, api=DEFAULT_TAG_API,
               long_text=DEFAULT_LONG_TEXT):
      '''
      Annotate a text, linking it to Wikipedia entities.
      :param text: the text to annotate.
      :param gcube_token: the authentication token provided by the D4Science infrastructure.
      :param lang: the Wikipedia language.
      :param api: the API endpoint.
      :param long_text: long_text parameter (see TagMe documentation).
      '''
      payload = [("text", text.encode("utf-8")),
                 ("long_text", long_text),
                 ("lang", lang)]
      json_response = _issue_request(api, payload, gcube_token)
      return AnnotateResponse(json_response) if json_response else None
docs: Annotate a text, linking it to Wikipedia entities.
      :param text: the text to annotate.
      :param gcube_token: the authentication token provided by the D4Science infrastructure.
      :param lang: the Wikipedia language.
      :param api: the API endpoint.
      :param long_text: long_text parameter (see TagMe documentation).