monarch-initiative / synonymizer

BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

synonymizer

The main objective of this tool is to apply custom rules for entity recognition to supplement the ontology dictionary generated from kgx for ontoRunNER.

Setups

python setup.py install

Steps

Python

from synonymizer import synonymize
synonymize.run(
    rule_file = [path to rules.yaml],
    schema_file = [path to schema.yaml],
    data_folder = [location of the folder that cotains the termlist.tsv files]
    )

CLI

python -m synonymizer.cli run 
       -r [path to rules.yaml] 
       -s [path to schema.yaml] 
       -d [location of the folder that cotains the termlist.tsv files]

or

python -m synonymizer.cli run 
       --rule [path to rules.yaml] 
       --schema [path to schema.yaml] 
       --data [location of the folder that cotains the termlist.tsv files]