Coder Social home page Coder Social logo

maastroclinic / pycontextnlp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chapmanbe/pycontextnlp

0.0 5.0 2.0 385 KB

Extract context modifiers targeting clinical terms

Python 14.65% Jupyter Notebook 15.05% HTML 70.23% Dockerfile 0.07%
clinical-nlp

pycontextnlp's Introduction

pyConTextNLP

This code has been validated using the included notebooks on Python v 3.7.2. Python 2.x is no longer supported.

pyConTextNLP is a Python implementation/extension/modification of the ConText algorithm described in `CITE <>`__ which is itself a generalization of the NegEx algorithm described in `CITE <>`__.

The package is maintained by Brian Chapman at the University of Utah. Other active and past developers include:

  • Wendy W. Chapman
  • Glenn Dayton
  • Danielle Mowery

MAASTRO docker-version (maastrodocker/pycontextnlp)

This fork of pyContextNLP adds docker and TCP support, documentation can be found here

Introduction

pyConTextNLP is a partial implementation of the ConText algorithm using Python. The original description of pyConTextNLP was provided in Chapman BE, Lee S, Kang HP, Chapman WW, "Document-level classification of CT pulmonary angiography reports based on an extension of the ConText algorithm." J Biomed Inform. 2011 Oct;44(5):728-37

Other publications/presentations based on pyConText include: * Wilson RA, et al. "Automated ancillary cancer history classification for mesothelioma patients from free-text clinical reports." J Pathol Inform. 2010 Oct 11;1:24. * Chapman BE, Lee S, Kang HP, Chapman WW. "Using ConText to Identify Candidate Pulmonary Embolism Subjects Based on Dictated Radiology Reports." (Presented at AMIA Clinical Research Informatics Summit 2011) * Wilson RA, Chapman WW, DeFries SJ, Becich MJ, Chapman BE. "Identifying History of Ancillary Cancers in Mesothelioma Patients from Free-Text Clinical Reports." (Presented at AMIA 2010).

Note: we changed the package name from pyConText to pyConTextNLP because of a name conflict on pypi.

Installation

Latest Version

The latest version of pyConTextNLP is available on [github](https://github.com/chapmanbe/pyConTextNLP). The package can be installed by either cloning the repository and running python setup.py install. Alternatively or by .. code:: shell

pip install git+https://github.com/chapmanbe/pyConTextNLP.git

PyPi

pyConTextNLP is also available via the Python Package Index and can be installed via

pip install pyConTextNLP

Dependencies include

  • networkx
  • PyYAML

Tutorials

See the notebooks folder for a series of walkthroughs demonstrating pyConTextNLP core concepts with example data.

How to Use

I am working on improving the documentation and (hopefully) adding some testing to the code.

Some preliminary comments:

  • pyConTextNLP works marks up text on a sentence by sentence level.
  • pyConTextNLP assumes the sentence is a string not a list of words
  • Our preferred way to represent knowledge is now with YAML files rather than TSV files.

pycontextnlp's People

Contributors

chapmanbe avatar putssander avatar n8v avatar dejori avatar abhishekl2625 avatar

Watchers

Florian Charlier avatar James Cloos avatar Johan van Soest avatar  avatar Tim Hendriks avatar

Forkers

trevismd jvsoest

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.