Verified Owner
Top Description Constructors Methods
org.jabref.logic.importer.fileformat.pdf

public Class CitationsFromPdf

extends Object
Class Inheritance
Imports
java.nio.file.Path, org.jabref.logic.ai.chatting.ChatModel, org.jabref.logic.ai.chatting.util.ChatModelFactory, org.jabref.logic.importer.ImportFormatPreferences, .ParserResult, org.jabref.logic.importer.plaincitation.LlmPlainCitationParser, org.jabref.logic.importer.util.GrobidPreferences, org.jabref.logic.preferences.CliPreferences, org.jabref.logic.util.NotificationService

Wrapper around the different options to extract citations from a PDF

We deliberately opt for passing whole CliPreferences to ease calling this helper methods

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static ParserResult
public static ParserResult
extractCitationsUsingGrobid(CliPreferences preferences, Path path, String grobidUrlOverride)

Same as extractCitationsUsingGrobid(CliPreferences, Path), but overrides the configured Grobid server URL for this single call.

public static ParserResult
extractCitationsUsingLLM(CliPreferences preferences, NotificationService notificationService, Path path)

public static ParserResult
pack-priv static ImportFormatPreferences
withOverriddenGrobidUrl(ImportFormatPreferences importFormatPreferences, String grobidUrlOverride)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CitationsFromPdfback to summary
public CitationsFromPdf()

Method Detail

extractCitationsUsingGrobidback to summary
public static ParserResult extractCitationsUsingGrobid(CliPreferences preferences, Path path)
extractCitationsUsingGrobidback to summary
public static ParserResult extractCitationsUsingGrobid(CliPreferences preferences, Path path, String grobidUrlOverride)

Same as extractCitationsUsingGrobid(CliPreferences, Path), but overrides the configured Grobid server URL for this single call.

extractCitationsUsingLLMback to summary
public static ParserResult extractCitationsUsingLLM(CliPreferences preferences, NotificationService notificationService, Path path)
extractCitationsUsingRuleBasedAlgorithmback to summary
public static ParserResult extractCitationsUsingRuleBasedAlgorithm(CliPreferences preferences, Path path)
withOverriddenGrobidUrlback to summary
pack-priv static ImportFormatPreferences withOverriddenGrobidUrl(ImportFormatPreferences importFormatPreferences, String grobidUrlOverride)