public class ProcessEngine
extends java.lang.Object
implements java.io.Closeable
Constructor and Description |
---|
ProcessEngine() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close engine resources.
|
void |
createTraining(GrobidMainArgs pGbdArgs)
Generate training data for all models
|
void |
createTrainingBlank(GrobidMainArgs pGbdArgs)
Generate blank training data from provided directory of PDF documents, i.e.
|
void |
createTrainingCitationPatent(GrobidMainArgs pGbdArgs)
Generate training data for citation extraction from patent documents.
|
void |
createTrainingMonograph(GrobidMainArgs pGbdArgs)
Generate training data for the monograph model from provided directory of PDF documents.
|
protected Engine |
getEngine() |
static java.util.List<java.lang.String> |
getUsableMethods()
List the engine methods that can be called.
|
protected static void |
inferOutputPath(GrobidMainArgs pGbdArgs)
Infer the output path if not given in arguments.
|
protected static void |
inferPdfInputPath(GrobidMainArgs pGbdArgs)
Infer the input path for pdfs if not given in arguments.
|
protected static boolean |
isUsableMethod(java.lang.String pMethod)
Check if the method is usable.
|
void |
processAffiliation(GrobidMainArgs pGbdArgs)
Process the affiliation using pGbdArgs parameters.
|
void |
processAuthorsCitation(GrobidMainArgs pGbdArgs)
Process the author citation using pGbdArgs parameters.
|
void |
processAuthorsHeader(GrobidMainArgs pGbdArgs)
Process the author header using pGbdArgs parameters.
|
void |
processCitationPatentPDF(GrobidMainArgs pGbdArgs)
Process a patent available in PDF using pGbdArgs parameters.
|
void |
processCitationPatentST36(GrobidMainArgs pGbdArgs)
Process a patent encoded in ST.36 using pGbdArgs parameters.
|
void |
processCitationPatentTXT(GrobidMainArgs pGbdArgs)
Process a patent in utf-8 text using pGbdArgs parameters.
|
void |
processDate(GrobidMainArgs pGbdArgs)
Process the date using pGbdArgs parameters.
|
void |
processFullText(GrobidMainArgs pGbdArgs)
Process the full text using pGbdArgs parameters.
|
void |
processHeader(GrobidMainArgs pGbdArgs)
Process the headers using pGbdArgs parameters.
|
void |
processPDFAnnotation(GrobidMainArgs pGbdArgs)
Process a patent available in PDF using pGbdArgs parameters.
|
void |
processRawReference(GrobidMainArgs pGbdArgs)
Process the raw reference using pGbdArgs parameters.
|
void |
processReferences(GrobidMainArgs pGbdArgs)
Process all the references using pGbdArgs parameters.
|
protected Engine getEngine()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public void processHeader(GrobidMainArgs pGbdArgs) throws java.lang.Exception
pGbdArgs
- The parameters.java.lang.Exception
public void processFullText(GrobidMainArgs pGbdArgs) throws java.lang.Exception
pGbdArgs
- The parameters.java.lang.Exception
public void processDate(GrobidMainArgs pGbdArgs) throws java.lang.Exception
pGbdArgs
- The parameters.java.lang.Exception
public void processAuthorsHeader(GrobidMainArgs pGbdArgs) throws java.lang.Exception
pGbdArgs
- The parameters.java.lang.Exception
public void processAuthorsCitation(GrobidMainArgs pGbdArgs) throws java.lang.Exception
pGbdArgs
- The parametersjava.lang.Exception
public void processAffiliation(GrobidMainArgs pGbdArgs) throws java.lang.Exception
pGbdArgs
- The parameters.java.lang.Exception
public void processRawReference(GrobidMainArgs pGbdArgs) throws java.lang.Exception
pGbdArgs
- The parameters.java.lang.Exception
public void processReferences(GrobidMainArgs pGbdArgs) throws java.lang.Exception
pGbdArgs
- The parameters.java.lang.Exception
public void createTraining(GrobidMainArgs pGbdArgs)
pGbdArgs
- The parameters.public void createTrainingMonograph(GrobidMainArgs pGbdArgs) throws java.lang.Exception
pGbdArgs
- The parameters.java.lang.Exception
public void createTrainingBlank(GrobidMainArgs pGbdArgs) throws java.lang.Exception
pGbdArgs
- The parameters.java.lang.Exception
public void createTrainingCitationPatent(GrobidMainArgs pGbdArgs) throws java.lang.Exception
pGbdArgs
- The parameters.java.lang.Exception
public void processCitationPatentST36(GrobidMainArgs pGbdArgs) throws java.lang.Exception
pGbdArgs
- The parameters.java.lang.Exception
public void processCitationPatentTXT(GrobidMainArgs pGbdArgs) throws java.lang.Exception
pGbdArgs
- The parameters.java.lang.Exception
public void processCitationPatentPDF(GrobidMainArgs pGbdArgs) throws java.lang.Exception
pGbdArgs
- The parameters.java.lang.Exception
public void processPDFAnnotation(GrobidMainArgs pGbdArgs) throws java.lang.Exception
pGbdArgs
- The parameters.java.lang.Exception
public static final java.util.List<java.lang.String> getUsableMethods()
protected static final boolean isUsableMethod(java.lang.String pMethod)
pMethod
- method name.protected static final void inferPdfInputPath(GrobidMainArgs pGbdArgs)
pGbdArgs
- The GrobidArgs.protected static final void inferOutputPath(GrobidMainArgs pGbdArgs)
pGbdArgs
- The GrobidArgs.