Skip to content

Commit

Permalink
comments for new citation parser methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitt2 committed Mar 22, 2021
1 parent 7cc6da4 commit 98793c3
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public CitationParser(EngineParsers parsers) {
this.parsers = parsers;
}

/**
* Process one single raw reference string
*/
public BiblioItem processingString(String input, int consolidate) {
List<String> inputs = new ArrayList<>();
inputs.add(input);
Expand All @@ -72,6 +75,10 @@ public BiblioItem processingString(String input, int consolidate) {
return null;
}

/**
* Process a list of raw reference strings by taking advantage of batch processing
* when a DeLFT deep learning model is used
*/
public List<BiblioItem> processingStringMultiple(List<String> inputs, int consolidate) {
if (inputs == null || inputs.size() == 0)
return null;
Expand Down Expand Up @@ -100,6 +107,9 @@ public List<BiblioItem> processingStringMultiple(List<String> inputs, int consol
return results;
}

/**
* Process one single raw reference string tokenized as layout objects
*/
public BiblioItem processingLayoutToken(List<LayoutToken> tokens, int consolidate) {
List<List<LayoutToken>> tokenList = new ArrayList<>();
tokenList.add(tokens);
Expand All @@ -110,6 +120,10 @@ public BiblioItem processingLayoutToken(List<LayoutToken> tokens, int consolidat
return null;
}

/**
* Process a list of raw reference string, each one tokenized as layout objects, and taking advantage
* of batch processing when a DeLFT deep learning model is used
*/
public List<BiblioItem> processingLayoutTokenMultiple(List<List<LayoutToken>> tokenList, int consolidate) {
if (tokenList == null || tokenList.size() == 0)
return null;
Expand Down

0 comments on commit 98793c3

Please sign in to comment.