项目作者: chaitjo

项目描述 :
Building Knowledge Graphs from Unstructured Text
高级语言: Jupyter Notebook
项目地址: git://github.com/chaitjo/knowledge-graphs.git
创建时间: 2020-04-03T16:14:10Z
项目社区:https://github.com/chaitjo/knowledge-graphs

开源协议:

下载


Building Knowledge Graphs from Unstructured Text

Challenge: Build a Knowledge Graph for the company Bayer, focused on their Pharmacology business.

Refer to the notebook main.ipynb for usage and visualizations of our results. Check out the presentation slides here.

Bayer-Pharma Knowledge Graph

Installation

  1. # Create conda environment
  2. conda create -n nlp python=3.7
  3. conda activate nlp
  4. # Install and setup Spacy
  5. conda install -c conda-forge spacy==2.1.6
  6. python -m spacy download en
  7. python -m spacy download en_core_web_lg
  8. # Install neuralcoref (specific version, for spacy compatibility)
  9. conda install cython
  10. curl https://github.com/huggingface/neuralcoref/archive/4.0.0.zip -o neuralcoref-4.0.0.zip -J -L -k
  11. cd neuralcoref
  12. python setup.py build_ext --inplace
  13. python setup.py install
  14. # Install additional packages
  15. pip install wikipedia-api
  16. conda install pandas networkx matplotlib seaborn
  17. conda install pytorch=1.2.0 cudatoolkit=10.0 -c pytorch
  18. pip install transformers
  19. # Install extras
  20. conda install ipywidgets nodejs -c conda-forge
  21. jupyter labextension install @jupyter-widgets/jupyterlab-manager