Skip to content

csse-uoft/smile-ks-dependency-tree-eval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

SMILE Knowledge Source: Dependency Tree Fix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages