This release adds the ability to query the termexists
cNLP transformer when listing polarity. It's another polarity model that's similar to the default negation
model, but may be a bit better.
The model can be installed from docker hub.
Set URL_CNLP_TERM_EXISTS
to point at the correct endpoint (defaults to http://localhost:8000/termexists/process
).
Use it like so:
from ctakesclient.transformer import TransformerModel, list_polarity
list_polarity(text, spans, model=TransformerModel.TERM_EXISTS)