ex:JAPE Grammar
rdfs:label "Negation Detection 01";
ex:pattern
({Token.string!="."})[0,5]
{Lookup.majorType == PreNeg}
({Token.string!="."})[0,5]
;
rdfs:comment "The rules translate as: match a span which expands 5 tokens before a gazetteer match and 5 tokens after a gazetteer match excluding full stops, in order to prevent the rule expanding beyond the limits of a sentence"
.
ex:JAPE Grammar
rdfs:label "Negation Detection 02";
ex:pattern
({Token.string!="."})[0,5]
{Lookup.majorType == PostNeg}
({Token.string!="."})[0,5]
;
rdfs:comment "The rules translate as: match a span which expands 5 tokens before a gazetteer match and 5 tokens after a gazetteer match excluding full stops, in order to prevent the rule expanding beyond the limits of a sentence"
.
ex:JAPE Grammar
rdfs:label "Negation Detection 03";
ex:pattern
{NegSentence contains Lookup.majorType=="Monument Type"}|
{NegSentence contains Lookup.majorType=="MDA ObjectType"}|
{NegSentence contains Lookup.majorType=="Building Material"}|
{NegSentence contains Lookup.majorType=="Timeline"}
;
rdfs:comment "Filtering out those phrases matched by the above rules but not containing any EH Thesauri terms"
.
ex:JAPE Grammar
rdfs:label "Negation Detection 04";
ex:pattern
({E19}|{E19_Conjuction})
({Token,!StopNeg})[0,10]
{Token.string=="not"}
({Token})?
{Lookup.majorType==VerbNeg}
;
rdfs:comment "A Physical Object entity or conjunct Physical Object terms which are followed by up to 10 Tokens, which do not contain a stop word (StopNeg), which are followed by 'not' which might be followed by no token or one token, followed by a Lookup annotation of Negation-verbs gazetteer list, for example, 'pottery and tile remains were not observed'"
.
ex:JAPE Grammar
rdfs:label "Negation Detection 05";
ex:pattern
{Lookup.majorType==PreNeg}
({Token, !StopNeg})[0,10]
({E19}|{E19_Conjuction})
;
rdfs:comment "A Lookup annotation of the Pre-negation gazetteer list followed by up to 10 Tokens which do not contain a stop word (StopNeg), which are followed by a Physical Object entity or conjunct Physical Object terms, for example, 'absence of any datable small finds or artefacts'"
.
ex:JAPE Grammar
rdfs:label "Negation Detection 06";
ex:pattern
({E19}|{E19_Conjuction})
({Token, !StopNeg})[0,10]
{Lookup.majorType==PostNeg}
;
rdfs:comment "Physical Object entity or conjunct Physical Object terms which are followed by up to 10 Tokens which do not contain a stop word (StopNeg), which are followed by a Lookup annotation of the Post-negation gazetteer. For example, 'wares such as tea bowl are particularly unlikely to exist'"
.
ex:JAPE Grammar
rdfs:label "Negation Detection 07";
ex:pattern
{E19 within Negation}
;
rdfs:comment "Match a Physical Object entity which is within a Negation annotation. All matches are removed (filtered out) for the Annotation"
.