Skip to content

Commit

Permalink
remove rogue trailing space from rule and orgType feature names. closes
Browse files Browse the repository at this point in the history
  • Loading branch information
greenwoodma committed Nov 16, 2023
1 parent 8ff4b88 commit daf4d7e
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions src/main/resources/resources/NE/org_context.jape
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ Priority: 1
{
gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");
gate.FeatureMap features = Factory.newFeatureMap();
features.put("rule ", "OrgContext1");
features.put("orgType ", "company");
features.put("rule", "OrgContext1");
features.put("orgType", "company");
outputAS.add(org.firstNode(), org.lastNode(), "Organization",
features);
outputAS.removeAll(org);
Expand All @@ -74,8 +74,8 @@ Priority: 5
{
gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");
gate.FeatureMap features = Factory.newFeatureMap();
features.put("rule ", "OrgContext2");
features.put("orgType ", "company");
features.put("rule", "OrgContext2");
features.put("orgType", "company");
outputAS.add(org.firstNode(), org.lastNode(), "Organization",
features);
outputAS.removeAll(org);
Expand All @@ -95,8 +95,8 @@ Priority: 5
{
gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");
gate.FeatureMap features = Factory.newFeatureMap();
features.put("rule ", "OrgContext3");
features.put("orgType ", "company");
features.put("rule", "OrgContext3");
features.put("orgType", "company");
outputAS.add(org.firstNode(), org.lastNode(), "Organization",
features);
outputAS.removeAll(org);
Expand All @@ -117,8 +117,8 @@ Priority: 10
{
gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");
gate.FeatureMap features = Factory.newFeatureMap();
features.put("rule ", "OrgContext4");
features.put("orgType ", "company");
features.put("rule", "OrgContext4");
features.put("orgType", "company");
outputAS.add(org.firstNode(), org.lastNode(), "Organization",
features);
outputAS.removeAll(org);
Expand All @@ -141,8 +141,8 @@ Priority: 10
{
gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");
gate.FeatureMap features = Factory.newFeatureMap();
features.put("rule ", "OrgContext5");
features.put("orgType ", "company");
features.put("rule", "OrgContext5");
features.put("orgType", "company");
outputAS.add(org.firstNode(), org.lastNode(), "Organization",
features);
outputAS.removeAll(org);
Expand Down Expand Up @@ -170,8 +170,8 @@ Priority: 50
{
gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");
gate.FeatureMap features = Factory.newFeatureMap();
features.put("rule ", "JoinOrg");
features.put("orgType ", "company");
features.put("rule", "JoinOrg");
features.put("orgType", "company");
outputAS.add(org.firstNode(), org.lastNode(), "Organization",
features);
outputAS.removeAll(org);
Expand Down Expand Up @@ -199,8 +199,8 @@ gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");

//create the new annotation
gate.FeatureMap features = Factory.newFeatureMap();
features.put("rule ", "OrgPerson");
features.put("orgType ", "company");
features.put("rule", "OrgPerson");
features.put("orgType", "company");
outputAS.add(org.firstNode(), org.lastNode(), "Organization",
features);

Expand All @@ -227,8 +227,8 @@ gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");

//create the new annotation
gate.FeatureMap features = Factory.newFeatureMap();
features.put("rule ", "UnknownJobTitlePerson");
features.put("orgType ", "company");
features.put("rule", "UnknownJobTitlePerson");
features.put("orgType", "company");
outputAS.add(org.firstNode(), org.lastNode(), "Organization",
features);

Expand All @@ -250,8 +250,8 @@ Priority: 10
{
gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");
gate.FeatureMap features = Factory.newFeatureMap();
features.put("rule ", "OrgConjOrg1");
features.put("orgType ", "unknown");
features.put("rule", "OrgConjOrg1");
features.put("orgType", "unknown");
outputAS.add(org.firstNode(), org.lastNode(), "Organization",
features);
outputAS.removeAll(org);
Expand All @@ -272,8 +272,8 @@ Priority: 10
{
gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");
gate.FeatureMap features = Factory.newFeatureMap();
features.put("rule ", "OrgConjOrg2");
features.put("orgType ", "unknown");
features.put("rule", "OrgConjOrg2");
features.put("orgType", "unknown");
outputAS.add(org.firstNode(), org.lastNode(), "Organization",
features);
outputAS.removeAll(org);
Expand All @@ -293,8 +293,8 @@ outputAS.removeAll(org);
// {
//gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");
//gate.FeatureMap features = Factory.newFeatureMap();
//features.put("rule ", "OrgJobTitle");
//features.put("orgType ", "company");
//features.put("rule", "OrgJobTitle");
//features.put("orgType", "company");
//outputAS.add(org.firstNode(), org.lastNode(), "Organization",
//features);
//outputAS.removeAll(org);
Expand All @@ -311,8 +311,8 @@ Priority: 30
{
gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");
gate.FeatureMap features = Factory.newFeatureMap();
features.put("rule ", "AcronymOrg");
features.put("orgType ", "unknown");
features.put("rule", "AcronymOrg");
features.put("orgType", "unknown");
outputAS.add(org.firstNode(), org.lastNode(), "Organization",
features);
outputAS.removeAll(org);
Expand All @@ -331,8 +331,8 @@ Priority: 30
{
gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");
gate.FeatureMap features = Factory.newFeatureMap();
features.put("rule ", "OrgBracketOrg");
features.put("orgType ", "unknown");
features.put("rule", "OrgBracketOrg");
features.put("orgType", "unknown");
outputAS.add(org.firstNode(), org.lastNode(), "Organization",
features);
outputAS.removeAll(org);
Expand All @@ -352,8 +352,8 @@ Priority: 30
gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("org");
gate.AnnotationSet personSet = (gate.AnnotationSet) bindings.get("person");
gate.FeatureMap features = Factory.newFeatureMap();
features.put("rule ", "PersonOrgEnding");
features.put("orgType ", "company");
features.put("rule", "PersonOrgEnding");
features.put("orgType", "company");
outputAS.add(org.firstNode(), org.lastNode(), "Organization",
features);
outputAS.removeAll(personSet);
Expand All @@ -370,8 +370,8 @@ Rule:CityUniversity
{
gate.AnnotationSet org = (gate.AnnotationSet) bindings.get("tag");
gate.FeatureMap features = Factory.newFeatureMap();
features.put("rule ", "CityUniversity");
features.put("orgType ", "university");
features.put("rule", "CityUniversity");
features.put("orgType", "university");
outputAS.add(org.firstNode(), org.lastNode(), "Organization",
features);
outputAS.removeAll(org);
Expand Down

0 comments on commit daf4d7e

Please sign in to comment.