Skip to content

NER model for extracting Social Service related terms from service descriptions

License

Notifications You must be signed in to change notification settings

csse-uoft/scroll

Repository files navigation

scroll

SoCial puRpose Organization Language modeL

The SCROLL project includes the following modules:

  • NER model for extracting terms from descriptions of social purpose organizations
  • Narrative building model from semantic roles
  • Citation: Gajderowicz, B., Rosu, D., & Fox, M. S. (2022). Compass Event , Client , and Service Ontology : A Design Pattern for Social Services. The Eighth Joint Ontology Workshops (JOWO’22), CEUR Workshop Proceedings, 1--12.

Installation

1. Setup Python Environment

  • conda env create -f PyScroll.yml python=3.9

2. Install StanfordCoreNLP packages

  • cd corenlp
  • chmod +x nlp_server.sh
  • curl https://downloads.cs.stanford.edu/nlp/software/stanford-corenlp-4.3.1.zip > stanford-corenlp-4.3.1.zip
  • open stanford-corenlp-4.3.1.zip
  • curl https://downloads.cs.stanford.edu/nlp/software/stanford-parser-4.2.0.zip > stanford-parser-4.2.0.zip
  • open stanford-parser-4.2.0.zip
  • cd ..

3. Install Prolog

Run program

1. Start nlp server

  • ./corenlp/nlp_server.sh

2. Run unit test code

  • This will generate all files based on sentences in output/unit_test_sentences.txt
  • python -i run_unit_tests.py

3. Load own file

  • create and place in output/<file_prefix>/input/input_file.csv

     file_prefix = 'my_data_source'
     filename = 'output/%s/input/input_file.csv'%(file_prefix)
     posp = POSProcesses(col='Description', program_name=Program Name')
     posp.load_compass_paragraphs(
        filename=filename,
        file_prefix=file_prefix, random_n=None)
    

About

NER model for extracting Social Service related terms from service descriptions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published