Skip to content
Back to skills

Ade Corpus

ASecurity

**ADE Corpus V2** — Adverse Drug Event relation extraction dataset from annotated PubMed case reports.

  • 230 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 6, 2026
ai-agentspythongoreactgit

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add BioTender-max/awesome-bio-agent-skills --skill ade_corpus --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ade Corpus?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ade Corpus
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/biotender-max-ade-corpus/badge)](https://www.skillsdirectory.com/skills/biotender-max-ade-corpus)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# 32_ADE_Corpus

## Overview

**ADE Corpus V2** — Adverse Drug Event relation extraction dataset from annotated PubMed case reports.

| Field | Value |
|-------|-------|
| Category | Drug-centric |
| Subcategory | Drug NLP / Text Mining |
| Source | [GitHub](https://github.com/trunghlt/AdverseDrugReaction/tree/master/ADE-Corpus-V2) |
| Paper | [ACL 2016](https://aclanthology.org/C16-1084/) |
| Local Path | `resources_metadata/drug_nlp/ADECorpus/ADE-Corpus-V2` |

## Data Files

| File | Content |
|------|---------|
| `DRUG-AE.rel` | Drug ↔ Adverse Event relation pairs with source sentences |
| `DRUG-DOSE.rel` | Drug ↔ Dose relation pairs with source sentences |
| `ADE-NEG.txt` | Negative examples (sentences without adverse events) |

## Quick Start

```python
from 32_ADE_Corpus import ADECorpus  # or rename to ade_corpus

corpus = ADECorpus()

# Single entity
print(corpus.query("aspirin"))

# Multiple entities
print(corpus.query(["lithium", "hepatotoxicity"]))

# Corpus statistics
print(corpus.stats())
```

## Query Input / Output

### Input

`corpus.query(entities)` — accepts `str` or `list[str]`.  
Each entity is matched case-insensitively against both drug names and adverse event names.

### Output (JSON)

```json
{
  "aspirin": {
    "entity": "aspirin",
    "matched_as_drug": true,
    "matched_as_adverse_event": false,
    "total_mentions": 42,
    "adverse_events": ["bleeding", "tinnitus", "..."],
    "doses": ["100mg", "..."],
    "related_drugs": null,
    "pubmed_ids": ["12345678", "..."],
    "sample_sentences": ["A 65-year-old patient developed ..."]
  }
}
```

| Field | Description |
|-------|-------------|
| `matched_as_drug` | Entity found as a drug name |
| `matched_as_adverse_event` | Entity found as an adverse event name |
| `total_mentions` | Total matching records |
| `adverse_events` | List of associated adverse events (when matched as drug) |
| `doses` | List of associated doses (when matched as drug) |
| `related_drugs` | List of drugs causing this event (when matched as AE) |
| `pubmed_ids` | Up to 10 source PubMed IDs |
| `sample_sentences` | Up to 3 example sentences |

## Notes

- All matching is **case-insensitive**.
- `query()` returns a **JSON string** directly consumable by LLMs.
- `stats()` returns corpus-level counts (total relations, unique drugs/AEs).
- No external dependencies — stdlib only (`os`, `json`, `collections`).

Files in this skill

  • README.md1.6 KB
  • SKILL.md2.4 KB
  • __init__.py143 B
  • ade_corpus_skill.py5.5 KB
  • example.py6.3 KB
  • retrieve.py721 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.