machinalis / iepy

Information Extraction in Python
BSD 3-Clause "New" or "Revised" License
905 stars 186 forks source link

python3 ./bin/iepy_rules_runner.py -> Relation 'xxxx' not found #135

Open bladechen opened 7 years ago

bladechen commented 7 years ago

hi, i got quit frustrated with this tool. i have copy the example rules.py to the project directory, but when i executepython3 ./bin/iepy_rules_runner.py, it tells me 'Relation 'was born' not found'

drwxrwxr-x 2 ubuntu ubuntu   4096 Aug  4 12:08 bin/
-rw-rw-r-- 1 ubuntu ubuntu    468 Aug  4 10:54 extractor_config.json
-rw-rw-r-- 1 ubuntu ubuntu  15462 Aug  4 12:01 godfather.csv
-rw-r--r-- 1 ubuntu ubuntu 456704 Aug  4 12:33 hello.sqlite
-rw-rw-r-- 1 ubuntu ubuntu     19 Aug  4 10:54 __init__.py
-rw-rw-r-- 1 ubuntu ubuntu    116 Aug  4 12:32 ll
drwxrwxr-x 2 ubuntu ubuntu   4096 Aug  4 12:36 __pycache__/
-rw-rw-r-- 1 ubuntu ubuntu   3868 Aug  4 12:36 rules.py
-rw-rw-r-- 1 ubuntu ubuntu     63 Aug  4 11:34 sample.csv
-rw-rw-r-- 1 ubuntu ubuntu    967 Aug  4 10:54 settings.py
bladechen commented 7 years ago

any suggestions on this problem, i have looked the doc more than 10 tens, but still get stuck here.

veheart commented 7 years ago

it must run this command python bin/iepy_rules_runner.py PER_BIRTH_DATE, the PER_BIRTH_DATE is the relation defined in the rules.py, namely the "was born", at the same time, you must build the relation PER_BIRTH_DATE on the web( I do it first).