GithubHelp home page GithubHelp logo

dtim-upc / thor Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 1.0 5.55 MB

THOR (Text Homogenization from Oblivion to Reality)

License: GNU General Public License v3.0

Jupyter Notebook 99.28% Python 0.72%
data-enrichment data-integration entity-recognition information-extraction missing-data nlp text-conceptualization

thor's Introduction

Text Homogenization from Oblivion to Reality (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)

thor's People

Contributors

shaoncsecu avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

shaoncsecu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.