Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 2.22 KB

README.md

File metadata and controls

67 lines (46 loc) · 2.22 KB

smile_ks_dependency_tree_eval

SMILE Knowledge Source: Dep Tree Fix

Setup

1 GraphDB Installation

2 GraphDB Repository Creation

  • For testing, make sure the username and password are set to admin
  • Create a new test repository. Go to http://localhost:7200
    • Create new repository:
      • Name the repository (Repository ID) as smile
      • Set context index to True *(checked).
      • Set query timeout to 45 second.
      • Set the Throw exception on query timeout checkmark to True (checked)
      • Click on create repository.
    • Make sure the repository rin in "Running" state.
  • See instruction below for troubleshooting

3 GraphDB Configuration

A few notes on configurting SMILE to connect to the database.

4 Setup smile-ks-dependency-tree-eval

conda env create -f PyDepTrees.yml

Running KnowldgeSource

Run NLP Server

You will need two terminals. In teh first termina,, run teh server, as shown below. Run teh knwodlge source in another terminal.

Term 1, run: cd src/smile_ks_dependency_tree_eval/libs/ ./corenlp/nlp_server.sh This will start a NLP server at http://localhost:9000. It will run in the background.

To run example

conda activate PyDepTrees cd src python -m smile_ks_dependency_tree_eval.main

To run KnowledgeSource Listener

conda activate PyDepTrees cd src python -m smile_ks_dependency_tree_eval.listener

To run KnowledgeSource Console

conda activate PyDepTrees cd src python -m smile_ks_dependency_tree_eval.console

To run KnowledgeSource Tests

conda activate PyDepTrees python -m tests.fix_tests