diff --git a/dataset/gmd-12/EnglishVersion/dev.pk b/dataset/gmd-12/EnglishVersion/dev.pk new file mode 100644 index 0000000..79a42b4 Binary files /dev/null and b/dataset/gmd-12/EnglishVersion/dev.pk differ diff --git a/dataset/gmd-12/EnglishVersion/disease.txt b/dataset/gmd-12/EnglishVersion/disease.txt new file mode 100644 index 0000000..c381833 --- /dev/null +++ b/dataset/gmd-12/EnglishVersion/disease.txt @@ -0,0 +1,12 @@ +Esophagitis +Enteritis +Asthma +Coronary heart disease +Pneumonia +Rhinitis +Thyroiditis +Traumatic brain injury +Dermatitis +External otitis +Conjunctivitis +Mastitis diff --git a/dataset/gmd-12/EnglishVersion/reader.ipynb b/dataset/gmd-12/EnglishVersion/reader.ipynb new file mode 100644 index 0000000..07063e8 --- /dev/null +++ b/dataset/gmd-12/EnglishVersion/reader.ipynb @@ -0,0 +1,112 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [], + "source": [ + "import pickle" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [], + "source": [ + "with open('train.pk','rb') as f:\n", + " train_data = pickle.load(f)\n" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " 1912\n" + ] + } + ], + "source": [ + "print(type(train_data), len(train_data))" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[{'explicit_inform_slots': {'Cough': True,\n", + " 'Chest tightness and shortness of breath': False},\n", + " 'implicit_inform_slots': {'Pain behind the breastbone': False,\n", + " 'Chest tightness': False,\n", + " 'Hemoptysis': True,\n", + " 'Expectoration': True},\n", + " 'disease_tag': 'Esophagitis'},\n", + " {'explicit_inform_slots': {'Burning sensation behind the breastbone': True,\n", + " 'Acid reflux': True,\n", + " 'Chest tightness': False},\n", + " 'implicit_inform_slots': {'Pain behind the breastbone': False},\n", + " 'disease_tag': 'Esophagitis'},\n", + " {'explicit_inform_slots': {'Burning sensation behind the breastbone': True},\n", + " 'implicit_inform_slots': {'Cough': True, 'Acid reflux': True},\n", + " 'disease_tag': 'Esophagitis'},\n", + " {'explicit_inform_slots': {'Acid reflux': True},\n", + " 'implicit_inform_slots': {'Stomach ache': False,\n", + " 'Vomiting': True,\n", + " 'Diarrhea': True,\n", + " 'Nausea': True,\n", + " 'Bloating': True},\n", + " 'disease_tag': 'Esophagitis'}]" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "train_data[0:4]" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [], + "source": [ + "with open('test.pk','rb') as f:\n", + " test = pickle.load(f)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.8.5" + } + }, + "nbformat": 4, + "nbformat_minor": 4 +} diff --git a/dataset/gmd-12/EnglishVersion/symptom.txt b/dataset/gmd-12/EnglishVersion/symptom.txt new file mode 100644 index 0000000..ff60069 --- /dev/null +++ b/dataset/gmd-12/EnglishVersion/symptom.txt @@ -0,0 +1,118 @@ +Dizziness +Chest tightness +Burning sensation behind the breastbone +Chest tightness and shortness of breath +Pain behind the breastbone +Acid reflux +Nausea +Vomiting +Hard to swallow +Stomach ache +Bloating +Pharynx discomfort +Expectoration +Cough +Fever +Palpitations +Diarrhea +Feel sick and vomit +Loss of appetite +Hiccup +Thin +Anorexia +Increased stool frequency +Edema +Constipation +Bitter +Thirst +Hiccough +Hemoptysis +Runny nose +Twitch +Suppuration +Chills and fever +Black stool +Sweating +Shortness of breath +Poor spirits +Poor sleep +Stuffy nose +Hoarse +Hematemesis +Fear of cold +Bloody stools +Headache +Fatigue +Dizzy +Syncope +Consciousness disorder +Sleep disorder +Body aches +Blood in the tears +Diplopia +Difficulty breathing +Frequent urination +Hazy +Backache +Night sweats +Hematuria +Painful urination +Radiating pain +Defecate +Cyanosis +Mucus pus and blood in the stool +Tensile and heavy +Rash +Chills +Urgency +Decreased urine output +Abdominal pain and diarrhea +Sneeze +Cry +Waist pain +First degree swelling of bilateral tonsils +Oliguria +Afraid of cold +Joint pain +Itching +Swelling of both nasal mucosa +Itchy eyes +Ear itching +Thin white moss +Nasal congestion +Inspiratory tri-concave sign +Tinnitus +Vertigo +Headache and dizziness +Poor physical activity +Pain in front of neck +Redness +Earache +Snore +Ulcer +Right earache +Nose bleeding +Nasal mucosal congestion +Hearing loss +Hand tremor +Proptosis +Mild thyroid enlargement +Afraid of heat +Shaking hands +Eye swelling +Vision loss +Head trauma pain +Unconsciousness +Incontinence +Limb numbness +Itchy and uncomfortable eyes +Jealous +Photophobia +Papule +Congestion of skin and mucous membranes +Dysmenorrhea +Breast tenderness +Eye pain +Lumbago +Vaginal bleeding +Increased vaginal discharge diff --git a/dataset/gmd-12/EnglishVersion/test.pk b/dataset/gmd-12/EnglishVersion/test.pk new file mode 100644 index 0000000..3028b55 Binary files /dev/null and b/dataset/gmd-12/EnglishVersion/test.pk differ diff --git a/dataset/gmd-12/EnglishVersion/train.pk b/dataset/gmd-12/EnglishVersion/train.pk new file mode 100644 index 0000000..a9dabc5 Binary files /dev/null and b/dataset/gmd-12/EnglishVersion/train.pk differ