Skip to content

About

NLP project on automatic ICD-10 chapter codification of short Spanish/Catalan clinical literals.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

ICD-10 Chapter Codification

This repository contains the final submission for the Fundamentals of NLP project on automatic ICD-10 chapter codification of short Spanish/Catalan clinical literals.

The main result is a probability blend between a strong classical TF-IDF ensemble and a fine-tuned Spanish biomedical-clinical transformer. The best public Kaggle score obtained by the final system was 0.595.

Main Entry Points

Start here:

  • report/fnlp_project_report.pdf - final written report.
  • best_submission/best_submission_pipeline.ipynb - best reproducible pipeline.
  • best_submission/output/submissions/codi_a20.csv - archived best submission.

The past exploratory work is preserved in archive/.

Repository Structure

.
├── README.md
├── requirements.txt
├── report/
│   ├── README.md
│   ├── fnlp_project_report.pdf
│   └── latex/
│       ├── fnlp_project_report.tex
│       └── utils/
├── best_submission/
│   ├── README.md
│   ├── best_submission_pipeline.ipynb
│   └── output/
│       └── submissions/
│           └── codi_a20.csv
├── data/
│   ├── README.md
│   ├── raw/
│   ├── codiesp/
│   └── processed/
├── archive/
│   ├── README.md
│   ├── daniel/
│   ├── hermes/
│   └── shanthosh/
├── presentations/
└── information_files_from_campus_virtual/

Best Pipeline Summary

The final pipeline:

  1. Cleans and normalises the literals.
  2. Trains a classical ensemble using character and word TF-IDF features.
  3. Fine-tunes PlanTL-GOB-ES/roberta-base-biomedical-clinical-es.
  4. Adds external CodiEsp ICD-coded examples for the transformer stage.
  5. Blends classical and transformer probabilities.
  6. Writes Kaggle-ready submissions to best_submission/output/submissions/.

The notebook reads shared data from the repository-level data/ folder.

How to Run

Install the Python dependencies:

pip install -r requirements.txt

Open:

best_submission/best_submission_pipeline.ipynb

Run it from inside the best_submission/ folder. The notebook expects the shared data at:

../data/raw/
../data/codiesp/

The transformer stage is intended for a GPU runtime such as Google Colab or Kaggle. The classical section can run locally.

Report

The final report PDF is available at report/fnlp_project_report.pdf. The LaTeX source is in report/latex/ and can be recompiled using the template utilities in report/latex/utils/.

Data Note

The data/ folder is included because the files are small enough for GitHub, and keeping them here just makes it easier.

About

NLP project on automatic ICD-10 chapter codification of short Spanish/Catalan clinical literals.

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages