UTHealth-CCB / clamp-support

Clinical Language Annotation Modeling and Processing toolkit
http://clamp.uth.edu/
16 stars 2 forks source link

NegEx doesn't seem to work for me #66

Closed aflwong closed 3 years ago

aflwong commented 3 years ago

I wrote a simple code to test negation but it doesn't seem to work for me. Adapted from the smoking status example. Using CLAMP 1.6.3.

Here's a simple text to test. I can see 'PEANUT' semanticTag and assertion is 'absent' in I do not have any peanut.

BLOCK(ForEach) Sentence{} { ClampNameEntityUIMA{ FEATURE( "semanticTag", "PEANUT"), FEATURE( "assertion", "absent" ) -> SETFEATURE( "semanticTag", "NoPeanut" ) }; }

image

What am I missing?

jingqihit commented 3 years ago

Could you please share me a screen shot of your pipeline? The Ruta component should be located after assertion component.

On Thu, Nov 5, 2020, 10:40 AM aflwong notifications@github.com wrote:

I wrote a simple code to test negation but it doesn't seem to work for me. Adapted from the smoking status example. Using CLAMP 1.6.3.

Here's a simple text to test. I can see 'PEANUT' semanticTag and assertion is 'absent' in I do not have any peanut.

BLOCK(ForEach) Sentence{} { ClampNameEntityUIMA{ FEATURE( "semanticTag", "PEANUT"), FEATURE( "assertion", "absent" ) -> SETFEATURE( "semanticTag", "NoPeanut" ) }; }

[image: image] https://user-images.githubusercontent.com/73673971/98269294-29dc9280-1f53-11eb-94dc-7aed8ed4bfb3.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/UTHealth-CCB/clamp-support/issues/66, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBH2P277LXJRKZDIVFZ2QTSOLIOLANCNFSM4TLTBKUQ .

aflwong commented 3 years ago

Previous pipeline: image

That's it! I switched it around and it's now working. Thanks!