text: It is separated into two parts: installation and running the serverInstallation and Setupâ€‹#Ensure You have Java installed
  !apt-get install -y openjdk-11-jdk -q
  !update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java#Clone and install the Grobid Repo
  import os
  !git clone https://github.com/kermitt2/grobid.git
  os.environ["JAVA_HOME"] = "/usr/lib/jvm/java-11-openjdk-amd64"
  os.chdir('grobid')
  !./gradlew clean install#Run the server,
  get_ipython().system_raw('nohup ./gradlew run > grobid.log 2>&1 &')You can now use the GrobidParser to produce documentsfrom langchain.document_loaders.parsers import GrobidParserfrom langchain.document_loaders.generic import GenericLoader#Produce chunks from article paragraphsloader = GenericLoader.from_filesystem(    "/Users/31treehaus/Desktop/Papers/",    glob="*",    suffixes=[".pdf"],    parser= GrobidParser(segment_sentences=False))docs = loader.load()#Produce chunks from article sentencesloader = GenericLoader.from_filesystem(    "/Users/31treehaus/Desktop/Papers/",    glob="*",    suffixes=[".pdf"],    parser= GrobidParser(segment_sentences=True))docs = loader.load()Chunk metadata will include bboxes although these are a bit funky to parse, see https://grobid.readthedocs.io/en/latest/Coordinates-in-PDF/PreviousGraphsignalNextGutenbergInstallation and SetupCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright Â© 2023 LangChain, Inc.