Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Quantitative Smoke Status Extraction

This package aims to extract discrete smoking information from clinical narrative text.

Smoking information type

  • pack per day (PPD)
  • pack-year (PY)
  • smoking year (SY)
  • quit year – e.g., quit for 10 years (QY)
  • year at quit – e.g., quit at 2008 (YQ)

Input format

Individual text files:

A directory containing your individual clinical notes in .txt format. Each file will produce one output file in .ann format.

CSV file:

A .csv file with no header expected to contain the following information:

  • note ID
  • note text

The output file will be a .csv of the same format, with added fields for each category. If no value for a given category was obtained, the corresponding cell will be left blank.

Running the package:

Depending on your file input strategy, please run either of the following commands:

For individual text files

python run_engine.py directory/containing/notes/

For single .csv file

python run_engine.py path/to/your/file.csv

About

Python implementation of RuleBaseSmokingInfoExtraction java package

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages