Skip to content

Repository to contain code and figures for: Learning Methods for Knowledge-Enhanced Word Embeddings

Notifications You must be signed in to change notification settings

stefano-marchesin/learning_ke_wembs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 

Repository files navigation

Learning Methods for Knowledge-Enhanced Word Embeddings

Repository to contain code and information for:

Knowledge-Enhanced Word Embeddings for IR

Requirements

  • ElasticSearch 6.6
  • Python 3
    • Numpy
    • TensorFlow >= 1.13
    • Whoosh
    • SQLite3
    • Cvangysel
    • Pytrec_Eval
    • Scikit-Learn
    • Tqdm
    • QuickUMLS
    • Elasticsearch
    • Elasticsearch_dsl
  • UMLS 2018AA

Additional Notes

server.py needs to be substitued within QuickUMLS folder as it contains a modified version required to run knowledge-enhanced models.
The folder structure required to run experiments can be seen in folder example. Python files need to be put in root.
Qrels file needs to be in .txt format.
To perform retrofitting models run retrofit_word_vecs.py, to perform the alternate learning model run tf_run_jointcrm.py, and to perform the joint learning model run tf_run_ccbow.py.
To run BM25 or QLM, use the Jupyter Notebook file elastic_search.ipynb.
To perform re-ranking run reranking.py.

About

Repository to contain code and figures for: Learning Methods for Knowledge-Enhanced Word Embeddings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published