Class GrobidConfig

java.lang.Object
com.norconex.importer.handler.parser.impl.GrobidConfig

public class GrobidConfig extends Object

Grobid REST service configuration. When enabled, the importer will use the Grobid REST service (via the Tika GrobidRESTParser and JournalParser) to extract metadata and structured text from scientific documents such as PDF journal articles.

Grobid parsing is disabled by default. To enable it, set enabled to true and make sure a Grobid service is running at the configured serviceUrl (default: "http://localhost:8070").

Since:
4.0.0
  • Field Details

    • DEFAULT_SERVICE_URL

      public static final String DEFAULT_SERVICE_URL
      Default Grobid REST service URL.
      See Also:
  • Constructor Details

    • GrobidConfig

      public GrobidConfig()
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • getServiceUrl

      public String getServiceUrl()
    • setEnabled

      public GrobidConfig setEnabled(boolean enabled)
      Returns:
      this.
    • setServiceUrl

      public GrobidConfig setServiceUrl(String serviceUrl)
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object