org.grobid.core.engines.label.TaggingLabel Java Examples

The following examples show how to use org.grobid.core.engines.label.TaggingLabel. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TaggingTokenClusteror.java    From science-result-extractor with Apache License 2.0 5 votes vote down vote up
@Override
public boolean apply(org.grobid.core.tokenization.TaggingTokenCluster taggingTokenCluster) {
    for (TaggingLabel label : labels) {
        if (taggingTokenCluster.getTaggingLabel() == label) {
            return false;
        }
    }
    return true;
}
 
Example #2
Source File: TaggingTokenClusteror.java    From science-result-extractor with Apache License 2.0 4 votes vote down vote up
public LabelTypePredicate(TaggingLabel label) {
    this.label = label;
}
 
Example #3
Source File: TaggingTokenClusteror.java    From science-result-extractor with Apache License 2.0 4 votes vote down vote up
public LabelTypeExcludePredicate(TaggingLabel... labels) {
    this.labels = labels;
}
 
Example #4
Source File: TaggingTokenCluster.java    From science-result-extractor with Apache License 2.0 4 votes vote down vote up
public TaggingTokenCluster(TaggingLabel taggingLabel) {
    this.taggingLabel = taggingLabel;
}
 
Example #5
Source File: TaggingTokenCluster.java    From science-result-extractor with Apache License 2.0 4 votes vote down vote up
public void setTaggingLabel(TaggingLabel label) {
    this.taggingLabel = label;
}
 
Example #6
Source File: TaggingTokenCluster.java    From science-result-extractor with Apache License 2.0 4 votes vote down vote up
public TaggingLabel getTaggingLabel() {
    return taggingLabel;
}