Skip to content

Commit

Permalink
review labeling/training data
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitt2 committed Jul 29, 2023
1 parent ae0a52d commit 6bf7d12
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 131 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private List<Funding> getExtractionResult(List<LayoutToken> tokenizations, Strin

List<LayoutToken> tokens = cluster.concatTokens();
String clusterContent = LayoutTokensUtil.normalizeText(LayoutTokensUtil.toText(tokens));
if (clusterLabel.equals(FUNDING_FUNDER_FULL_NAME)) {
if (clusterLabel.equals(FUNDING_FUNDER_NAME)) {
Funder localFunder = funding.getFunder();
if (localFunder == null) {
localFunder = new Funder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ public class TaggingLabels {
public final static String PATENT_CITATION_PL_LABEL = "<refPatent>";
public final static String PATENT_CITATION_NPL_LABEL = "<refNPL>";

public final static String FUNDER_FULL_NAME_LABEL = "<funderFull>";
public final static String FUNDER_NAME_LABEL = "<funderName>";
public final static String FUNDER_ABBRV_NAME_LABEL = "<funderAbbrv>";
public final static String PROGRAM_FULL_NAME_LABEL = "<programFull>";
public final static String PROGRAM_NAME_LABEL = "<programName>";
public final static String PROGRAM_ABBRV_NAME_LABEL = "<programAbbrv>";
public final static String GRANT_NUMBER_LABEL = "<grantNumber>";
public final static String GRANT_NAME_LABEL = "<grantName>";
public final static String PROJECT_FULL_NAME_LABEL = "<projectFull>";
public final static String PROJECT_NAME_LABEL = "<projectName>";
public final static String PROJECT_ABBRV_NAME_LABEL = "<projectAbbrv>";
public final static String URL_LABEL = "<url>";

Expand Down Expand Up @@ -260,13 +260,13 @@ public class TaggingLabels {
public static final TaggingLabel MONOGRAPH_BACK = new TaggingLabelImpl(GrobidModels.MONOGRAPH, BACK_LABEL);
public static final TaggingLabel MONOGRAPH_OTHER = new TaggingLabelImpl(GrobidModels.MONOGRAPH, OTHER_LABEL);

public static final TaggingLabel FUNDING_FUNDER_FULL_NAME = new TaggingLabelImpl(GrobidModels.FUNDING, FUNDER_FULL_NAME_LABEL);
public static final TaggingLabel FUNDING_FUNDER_NAME = new TaggingLabelImpl(GrobidModels.FUNDING, FUNDER_NAME_LABEL);
public static final TaggingLabel FUNDING_FUNDER_ABBRV_NAME = new TaggingLabelImpl(GrobidModels.FUNDING, FUNDER_ABBRV_NAME_LABEL);
public static final TaggingLabel FUNDING_PROGRAM_FULL_NAME = new TaggingLabelImpl(GrobidModels.FUNDING, PROGRAM_FULL_NAME_LABEL);
public static final TaggingLabel FUNDING_PROGRAM_NAME = new TaggingLabelImpl(GrobidModels.FUNDING, PROGRAM_NAME_LABEL);
public static final TaggingLabel FUNDING_PROGRAM_ABBRV_NAME = new TaggingLabelImpl(GrobidModels.FUNDING, PROGRAM_ABBRV_NAME_LABEL);
public static final TaggingLabel FUNDING_GRANT_NUMBER = new TaggingLabelImpl(GrobidModels.FUNDING, GRANT_NUMBER_LABEL);
public static final TaggingLabel FUNDING_GRANT_NAME = new TaggingLabelImpl(GrobidModels.FUNDING, GRANT_NAME_LABEL);
public static final TaggingLabel FUNDING_PROJECT_FULL_NAME = new TaggingLabelImpl(GrobidModels.FUNDING, PROJECT_FULL_NAME_LABEL);
public static final TaggingLabel FUNDING_PROJECT_NAME = new TaggingLabelImpl(GrobidModels.FUNDING, PROJECT_NAME_LABEL);
public static final TaggingLabel FUNDING_PROJECT_ABBRV_NAME = new TaggingLabelImpl(GrobidModels.FUNDING, PROJECT_ABBRV_NAME_LABEL);
public static final TaggingLabel FUNDING_URL = new TaggingLabelImpl(GrobidModels.FUNDING, URL_LABEL);
public static final TaggingLabel FUNDING_OTHER = new TaggingLabelImpl(GrobidModels.FUNDING, OTHER_LABEL);
Expand Down Expand Up @@ -405,13 +405,13 @@ protected static void register(TaggingLabel label) {
register(MONOGRAPH_OTHER);

// funding
register(FUNDING_FUNDER_FULL_NAME);
register(FUNDING_FUNDER_NAME);
register(FUNDING_FUNDER_ABBRV_NAME);
register(FUNDING_PROGRAM_FULL_NAME);
register(FUNDING_PROGRAM_NAME);
register(FUNDING_PROGRAM_ABBRV_NAME);
register(FUNDING_GRANT_NUMBER);
register(FUNDING_GRANT_NAME);
register(FUNDING_PROJECT_FULL_NAME);
register(FUNDING_PROJECT_NAME);
register(FUNDING_PROJECT_ABBRV_NAME);
register(FUNDING_URL);
register(FUNDING_OTHER);
Expand Down
Loading

0 comments on commit 6bf7d12

Please sign in to comment.