Skip to content

5.1.0

Latest
Compare
Choose a tag to compare
@mikix mikix released this 28 Sep 16:59
· 4 commits to main since this release
6fe669d

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)