drug-extraction

A ToolBox for fuzzily extracting drugs mentions from text.

MIT License

Downloads
238
Stars
3
Committers
2

This project uses string similarity metrics to detect drug mentions inside text records.

Researchers at the University of Kentucky College of Pharmacy had a need for a simple, fast, intuitive interface to extract drug mentions in text records. This project takes text records and detects drug mentions (including misspellings) and then extracts the drug and the corresponding record for analysis.

Getting Started

In order to set clear expectations for the development of the toolbox and to keep feature requests in scope it is good to set some guidelines.

What this project IS:

  • A suite of tools to extract drug mentions from text records
  • A string parsing tool
  • An interactive playground website

What this project is NOT:

  • An analytical tool
  • A business intelligence tool
  • A preprocessing tool

This toolbox contains multiple projects:

  • A command line tool (available via pipx or cargo install)
  • An interactive website for exploring string similarity metrics

In v1.0.0 we have dropped support for both the de-workflow CLI and the drug-extraction-core library. Both are still available on PyPI.org and crates.io respectively but are not considered to be maintained.

For more information on the reasons for these significant changes, see the CHANGELOG.md.

We utilize string similarity algorithms as defined and implemented by Danny Guo in the str-sim package. For more information on string similarity algorithms, please consult this Wikipedia page for a comparison/list of algorithms and this page for an explanation of string metrics more generally.

The decision to use Rust was based on a series of performance comparison benchmarks and analysis which can be found on the perf-comp branch .

Take a quick look : screen recording

RoadMap

As of v1.0.0 we are considered stable and will prioritize not breaking features. Most new releases will come via performance improvements or new features (without breaking existing UI).

See the open issues for a full list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

We use gh release create to make new github releases, cargo release to release to crates.io, and maturin release to release to PyPI.org.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Nick Anthony - @nanthony95 - [email protected]

Project Link: https://github.com/uk-ipop/drug-extraction