Update README.md
Browse files
README.md
CHANGED
|
@@ -12,3 +12,47 @@ short_description: Clinical NER, Anatomy Detection, and POS Tagging with Gradio
|
|
| 12 |
---
|
| 13 |
|
| 14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 15 |
+
|
| 16 |
+
# Clinical NER, Anatomy Detection, and POS Tagging
|
| 17 |
+
|
| 18 |
+
This Gradio application provides Named Entity Recognition (NER) for clinical text, anatomy detection, and Part-of-Speech (POS) tagging using state-of-the-art transformer models.
|
| 19 |
+
|
| 20 |
+
## Features
|
| 21 |
+
|
| 22 |
+
- **Clinical NER**: Extract medical entities (diseases, symptoms, treatments, etc.) from clinical text
|
| 23 |
+
- **Anatomy Detection**: Identify anatomical terms in medical text
|
| 24 |
+
- **POS Tagging**: Part-of-speech tagging for linguistic analysis
|
| 25 |
+
- **Multiple Output Formats**: Get results in human-readable format or Prolog facts
|
| 26 |
+
- **Combined Analysis**: Run all three analyses simultaneously
|
| 27 |
+
|
| 28 |
+
## Models Used
|
| 29 |
+
|
| 30 |
+
- **Clinical NER**: `samrawal/bert-base-uncased_clinical-ner`
|
| 31 |
+
- **Anatomy Detection**: `OpenMed/OpenMed-NER-AnatomyDetect-BioPatient-108M`
|
| 32 |
+
- **POS Tagging**: spaCy `en_core_web_sm`
|
| 33 |
+
|
| 34 |
+
## Usage
|
| 35 |
+
|
| 36 |
+
The app provides four tabs:
|
| 37 |
+
|
| 38 |
+
1. **Clinical NER**: Extract clinical entities from medical text
|
| 39 |
+
2. **Anatomy Detection**: Detect anatomical terms
|
| 40 |
+
3. **POS Tagging**: Analyze part-of-speech tags
|
| 41 |
+
4. **Combined Analysis**: Run all analyses at once
|
| 42 |
+
|
| 43 |
+
Each tab supports:
|
| 44 |
+
- Basic format: Human-readable output with entity highlighting
|
| 45 |
+
- Prolog format: Structured facts for logic programming
|
| 46 |
+
|
| 47 |
+
## Example
|
| 48 |
+
|
| 49 |
+
Input:
|
| 50 |
+
```
|
| 51 |
+
Patient presents with pain in the left ventricle and elevated cardiac enzymes. The heart shows signs of inflammation.
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
Output includes detected medical conditions, anatomical structures, and linguistic analysis.
|
| 55 |
+
|
| 56 |
+
## Based On
|
| 57 |
+
|
| 58 |
+
This is a Gradio version of the clinical-ner FastAPI application, converted for easier demonstration and interaction.
|