Verified Owner
Top Fields Constructors Methods
org.jabref.logic.importer.plaincitation

public Class GrobidPlainCitationParser

extends Object
implements PlainCitationParser
Class Inheritance
All Implemented Interfaces
org.jabref.logic.importer.plaincitation.PlainCitationParser
Imports
java.io.IOException, java.net.SocketTimeoutException, java.util.Optional, org.jabref.logic.importer.FetcherException, .ImportFormatPreferences, .ParseException, org.jabref.logic.importer.util.GrobidPreferences, .GrobidService, org.jabref.model.entry.BibEntry, org.jabref.model.http.SimpleHttpResponse, org.jsoup.HttpStatusException, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final GrobidService
private final ImportFormatPreferences
private static final Logger

Constructor Summary

AccessConstructor and Description
public
GrobidPlainCitationParser(GrobidPreferences grobidPreferences, ImportFormatPreferences importFormatPreferences)

pack-priv
GrobidPlainCitationParser(ImportFormatPreferences importFormatPreferences, GrobidService grobidService)

Method Summary

Modifier and TypeMethod and Description
public Optional<BibEntry>

Returns:

A BibTeX string if extraction is successful
parsePlainCitation
(String text)

Implements org.jabref.logic.importer.plaincitation.PlainCitationParser.parsePlainCitation.

Passes request to grobid server, using consolidateCitations option to improve result.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

grobidServiceback to summary
private final GrobidService grobidService
importFormatPreferencesback to summary
private final ImportFormatPreferences importFormatPreferences
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

GrobidPlainCitationParserback to summary
public GrobidPlainCitationParser(GrobidPreferences grobidPreferences, ImportFormatPreferences importFormatPreferences)
GrobidPlainCitationParserback to summary
pack-priv GrobidPlainCitationParser(ImportFormatPreferences importFormatPreferences, GrobidService grobidService)

Method Detail

parsePlainCitationback to summary
public Optional<BibEntry> parsePlainCitation(String text) throws FetcherException

Implements org.jabref.logic.importer.plaincitation.PlainCitationParser.parsePlainCitation.

Passes request to grobid server, using consolidateCitations option to improve result. Takes a while, since the server has to look up the entry.

Returns:Optional<BibEntry>

A BibTeX string if extraction is successful

Annotations
@Override