-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1106 from kermitt2/bugfix/sent-seg-ack-fund
Add missing sentence segmentation in funding and acknowledgement
- Loading branch information
Showing
11 changed files
with
1,361 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
grobid-core/src/main/java/org/grobid/core/data/AnnotatedXMLElement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package org.grobid.core.data; | ||
|
||
import nu.xom.Element; | ||
import org.grobid.core.utilities.OffsetPosition; | ||
|
||
/** | ||
* This class represent an annotation in an XML node. | ||
* The annotation is composed by two information: the XML Element node and the offset position | ||
*/ | ||
public class AnnotatedXMLElement { | ||
|
||
private OffsetPosition offsetPosition; | ||
private Element annotationNode; | ||
|
||
public AnnotatedXMLElement(Element annotationNode, OffsetPosition offsetPosition) { | ||
this.annotationNode = annotationNode; | ||
this.offsetPosition = offsetPosition; | ||
} | ||
|
||
public OffsetPosition getOffsetPosition() { | ||
return offsetPosition; | ||
} | ||
|
||
public void setOffsetPosition(OffsetPosition offsetPosition) { | ||
this.offsetPosition = offsetPosition; | ||
} | ||
|
||
public Element getAnnotationNode() { | ||
return annotationNode; | ||
} | ||
|
||
public void setAnnotationNode(Element annotationNode) { | ||
this.annotationNode = annotationNode; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
grobid-core/src/main/java/org/grobid/core/data/FundingAcknowledgmentParse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package org.grobid.core.data; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* This class represent the funding / acknowledgement statement | ||
*/ | ||
public class FundingAcknowledgmentParse { | ||
List<Funding> fundingList = new ArrayList<>(); | ||
List<Person> personList = new ArrayList<>(); | ||
List<Affiliation> affiliations = new ArrayList<>(); | ||
// List<Pair<OffsetPosition, Element> statementAnnotations = new ArrayList<>(); | ||
|
||
public List<Funding> getFundings() { | ||
return fundingList; | ||
} | ||
|
||
public void setFundings(List<Funding> fundingList) { | ||
this.fundingList = fundingList; | ||
} | ||
|
||
public List<Person> getPersons() { | ||
return personList; | ||
} | ||
|
||
public void setPersons(List<Person> personList) { | ||
this.personList = personList; | ||
} | ||
|
||
public List<Affiliation> getAffiliations() { | ||
return affiliations; | ||
} | ||
|
||
public void setAffiliations(List<Affiliation> fundingBodies) { | ||
this.affiliations = fundingBodies; | ||
} | ||
|
||
// public List<GrobidAnnotation> getStatementAnnotations() { | ||
// return statementAnnotations; | ||
// } | ||
|
||
// public void setStatementAnnotations(List<GrobidAnnotation> statementAnnotations) { | ||
// this.statementAnnotations = statementAnnotations; | ||
// } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.