Hi Masoud,

For simple negation you could try to see if the context annotator is fast 
enough for your purposes:

add ContextAnnotator

https://cwiki.apache.org/confluence/display/CTAKES/cTAKES+4.0+-+NE+Contexts

In case you are creating a custom installation/configuration , this requires 
that you have ctakes-ne-contexts as a dependency in your pom.

I don't know if you need the context dependent tokens.  They cover items that 
you may not need.
https://cwiki.apache.org/confluence/display/CTAKES/cTAKES+4.0+-+Context+Dependent+Tokenizer

So you can probably save processing time and remove:
add ContextDependentTokenizerAnnotator

Sean


________________________________________
From: Masoud Rouhizadeh <m...@jhu.edu>
Sent: Thursday, January 16, 2020 5:28 PM
To: dev@ctakes.apache.org
Subject: Adding negation detection to fast dict lookup piper [EXTERNAL]

* External Email - Caution *


Hi all,

I’m trying to add simple and lightweight negation detection to the fast UMLC 
CUI annotation piper (please see below).

I understand that the assertion detection module works module great but that 
requires dependency parsing which would be computationally expensive for 
large-scale projects.

My ideal output would contain offset, term, preferred term, CUI, code, 
negation. So not a lot of extra information.

(1)    Is there any lightweight cTAKES negation detection module with minimal 
dependencies?
(2)    If so, what would be the best way to add that module to the 
HelloWorldCui.piper bellow?

load org/apache/ctakes/core/pipeline/DefaultTokenizerPipeline.piper
add ContextDependentTokenizerAnnotator
addDescription POSTagger
set ctakes.umlsuser=USER ctakes.umlspw=PASSWORD
add DefaultJCasTermAnnotator
collectCuis

Thanks so much!
Masoud


Reply via email to