{"data":{"kind":"file","path":"README.md","version_id":"ufm3fl3cnxn325tsobbhzvy9","entry":{"name":"README.md","path":"README.md","is_directory":false,"size":2208,"modified_at":"2026-01-29T11:51:06.123000","content_hash":"ab552de5d940332d97b3348775547e8821f11dda9f1f746c8f5eb8030674b88f"},"entries":[],"content":"# OpenMed DDI Environment\n\nDrug-Drug Interaction (DDI) detection environment for RL fine-tuning using the SemEval-2013 DDI Corpus.\n\n## Task Description\n\nGiven a sentence containing two drugs, classify the type of interaction between them:\n\n| Class | Label | Description |\n|-------|-------|-------------|\n| A | MECHANISM | Mechanistic description of how drugs interact (e.g., inhibition, induction) |\n| B | EFFECT | Clinical effect of concurrent use (e.g., increased toxicity, decreased efficacy) |\n| C | ADVISE | Advisory or cautionary information about concurrent use |\n| D | INT | General interaction without specific type |\n| E | NONE | No interaction between the drug pair |\n\n## Dataset\n\n- **Source**: [OpenMed/DDI-Corpus-Processed](https://huggingface.co/datasets/OpenMed/DDI-Corpus-Processed)\n- **Original**: [SemEval-2013 DDI Extraction Task](https://github.com/isegura/DDICorpus)\n- **Train**: 5,744 examples\n- **Test**: 1,398 examples\n\n## Reward Structure\n\n| Component | Weight | Description |\n|-----------|--------|-------------|\n| Accuracy | 80% | Exact match on DDI classification (A-E) |\n| Thinking | 15% | Quality of reasoning in `<think>` tags |\n| Format | 5% | Proper `\\boxed{}` answer format |\n\n## Example\n\n**Input:**\n```\nSentence: Concomitant use of digoxin and sympathomimetics increases the risk of cardiac arrhythmias.\nDrug 1: digoxin\nDrug 2: sympathomimetics\n```\n\n**Expected Output:**\n```\n<think>\nThe sentence describes that using digoxin together with sympathomimetics leads to\nincreased risk of cardiac arrhythmias. This is describing the clinical effect of\nconcurrent use - specifically an adverse effect (arrhythmias).\n</think>\n\\boxed{B}\n```\n\n## Usage\n\n```python\nfrom OpenMed_DDI import load_environment\n\nenv = load_environment()\n```\n\n## Citation\n\n```bibtex\n@article{herrero2013ddi,\n  title={The DDI corpus: An annotated corpus with pharmacological substances and drug--drug interactions},\n  author={Herrero-Zazo, Mar{\\'\\i}a and Segura-Bedmar, Isabel and Mart{\\'\\i}nez, Paloma and Declerck, Thierry},\n  journal={Journal of Biomedical Informatics},\n  volume={46},\n  number={5},\n  pages={914--920},\n  year={2013}\n}\n```\n\n## License\n\nCC BY-NC 4.0 (following original DDI Corpus license)\n","encoding":"utf-8","truncated":false,"total_bytes":2208},"status":null}