Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ THOR Public

THOR (Text Homogenization from Oblivion to Reality)

License

Notifications You must be signed in to change notification settings

dtim-upc/THOR

Repository files navigation

(追記) T (追記ここまで)ext (追記) H (追記ここまで)omogenization from (追記) O (追記ここまで)blivion to (追記) R (追記ここまで)eality (THOR)

Codebase for ICDE 2024 Paper:

"Mitigating Data Sparsity in Integrated Data through Text Conceptualization"


(追記) How to Run THOR (追記ここまで):

  1. Open the THOR_Conceptualization.ipynb script and click on the Open In Colab Button.
  2. Run the script from Runtime -> Run All
  3. It will automatically Download our Disease A-Z Dataset from the repository.
  4. At the bottom of the notebook, in the Main Function, you will be asked which EVALUATION set you want to use OR if you want to do only INFERENCING.
    • EVALUATION: This will RUN the Evaluation for the selected split, and save the RESULTS (2 Excel Files) in the "output" Folder.
      • By Default the Threshold is set to T=0.80 (80%). In order to change the threshold, please change this line in Main Function:
        matcher = initiate_matcher(patterns=accu_data, threshold=80)
    • INFERENCING: In order inference on your own text:
      • UPLOAD ONE TEXT (.txt) DOCUMENT (per-run) containing Disease and Condition related information (from your device) by clicking on Choose Files button.

(追記) How to Run Baseline (追記ここまで):

(追記) How to Run LM-SD/LM-Human (追記ここまで):

  • The LM-SD.ipynb and LM-Human.ipynb NEEDS GPU in order to run.
  • Colab Free offers a limited GPU option; thus, we assume you have access to either Colab Pro or a Local GPU (at least 6GB VRAM).
  • Please follow the instructions inside the model_config folder.

(追記) How to Run UniversalNER (追記ここまで):

  • The UniversalNER.ipynb also requires a Big GPU (Minimum 40 GB VRAM) with at least 32 GB of system RAM.
  • You need to UPLOAD the test data Masked_Text_Only_Test.json into the same directory as the code.
    • To run in Colab, upload it into the local cache directory: '/content/Masked_Text_Only_Test.json'

(追記) GPT-4 (追記ここまで):

  • Please follow the content of the GPT-4 folder in order to reproduce this experiment.

(追記) Generalizability Experiment (追記ここまで):

NOTE: Running on the Colab might take up-to 3x inference time due to the slow I/O bandwidth of Colab.


(追記) EXPERIMENTAL RESULTS (追記ここまで):

  • You can find all the evaluation scores (.xlsx) in the Results folder.
  • We followed the Evaluation Scheme proposed in SemEval 2013 for the Entity Recognition Task (9.1)

To Cite the ICDE-2024 Paper:

@INPROCEEDINGS{rahman2024mitigating,
 author={Rahman, Md Ataur and Nadal, Sergi and Romero, Oscar and Sacharidis, Dimitris},
 booktitle={2024 IEEE 40th International Conference on Data Engineering (ICDE)}, 
 title={Mitigating Data Sparsity in Integrated Data through Text Conceptualization}, 
 year={2024},
 volume={},
 number={},
 pages={3490-3504},
 keywords={Annotations;Data integration;Knowledge graphs;Information retrieval;Data engineering;Data models;Complexity theory;Data Integration;Information Extraction;Entity Recognition;Slot-filling},
 doi={10.1109/ICDE60146.2024.00269}
}

AltStyle によって変換されたページ (->オリジナル) /