docs: def extract(filepath, taxonomy, output_mode, output_limit,
              spires, match_mode, detect_author_keywords, extract_acronyms,
              rebuild_cache, only_core_tags, no_cache):
      """Run keyword extraction on given PDF file for given taxonomy."""
      if not filepath or not taxonomy:
          print("No PDF file or taxonomy given!", file=sys.stderr)
          sys.exit(0)
  
      click.echo(
          ">>> Going extract keywords from {0} as '{1}'...".format(
              filepath, output_mode
          )
      )
      if not os.path.isfile(filepath):
          click.echo(
              "Path to non-existing file\n",
          )
          sys.exit(1)
  
      result = get_keywords_from_local_file(
          local_file=filepath,
          taxonomy_name=taxonomy,
          output_mode=output_mode,
          output_limit=output_limit,
          spires=spires,
          match_mode=match_mode,
          no_cache=no_cache,
          with_author_keywords=detect_author_keywords,
          rebuild_cache=rebuild_cache,
          only_core_tags=only_core_tags,
          extract_acronyms=extract_acronyms
      )
      click.echo(result)