public class AuthorParser
extends java.lang.Object
Constructor and Description |
---|
AuthorParser() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.util.List<Person> |
processing(java.util.List<LayoutToken> tokens,
boolean head)
Common processing of authors in header or citation
|
java.util.List<Person> |
processingCitation(java.lang.String input)
Processing of authors in citations
|
java.util.List<Person> |
processingCitationLayoutTokens(java.util.List<LayoutToken> tokens) |
java.util.List<Person> |
processingHeader(java.lang.String input)
Processing of authors in authors
|
java.util.List<Person> |
processingHeaderWithLayoutTokens(java.util.List<LayoutToken> inputs) |
java.lang.StringBuilder |
trainingExtraction(java.lang.String input,
boolean head)
Extract results from a list of name strings in the training format without any string modification.
|
public java.util.List<Person> processingCitation(java.lang.String input) throws java.lang.Exception
java.lang.Exception
public java.util.List<Person> processingCitationLayoutTokens(java.util.List<LayoutToken> tokens) throws java.lang.Exception
java.lang.Exception
public java.util.List<Person> processingHeader(java.lang.String input) throws java.lang.Exception
java.lang.Exception
public java.util.List<Person> processingHeaderWithLayoutTokens(java.util.List<LayoutToken> inputs)
public java.util.List<Person> processing(java.util.List<LayoutToken> tokens, boolean head)
tokens
- list of LayoutToken object to processhead
- - if true use the model for header's name, otherwise the model for names in citationpublic java.lang.StringBuilder trainingExtraction(java.lang.String input, boolean head)
input
- - the sequence of author names to be processed as a string.head
- - if true use the model for header's name, otherwise the model for names in citationpublic void close() throws java.io.IOException
java.io.IOException