petrarch
petrarch copied to clipboard
Processing bug
Seems to be a bug that causes PETR to crash. Traceback is:
Traceback (most recent call last):
File "/home/data/phoenix_pipeline/pipeline.py", line 133, in <module>
run_filter=file_details.oneaday_filter)
File "/home/data/phoenix_pipeline/pipeline.py", line 98, in main
config='petr_config.ini')
File "/usr/local/lib/python2.7/dist-packages/petrarch/petrarch.py", line 3035, in run_pipeline
updated_events = do_coding(events, 'TEMP')
File "/usr/local/lib/python2.7/dist-packages/petrarch/petrarch.py", line 2842, in do_coding
coded_events = code_record()
File "/usr/local/lib/python2.7/dist-packages/petrarch/petrarch.py", line 2680, in code_record
assign_NEcodes()
File "/usr/local/lib/python2.7/dist-packages/petrarch/petrarch.py", line 2376, in assign_NEcodes
result = check_NEphrase(nephrase)
File "/usr/local/lib/python2.7/dist-packages/petrarch/petrarch.py", line 2006, in check_NEphrase
actorcode = get_actor_code(patlist[index][0])
File "/usr/local/lib/python2.7/dist-packages/petrarch/petrarch.py", line 1883, in get_actor_code
codelist = PETRglobals.ActorCodes[index]
IndexError: list index out of range
@philip-schrodt
Assuming it passes tests with the Phoenix inputs, the changes to the multi-word verb processing I just posted should correct this
Hello, I am facing the same issue, though I am using Petr on its own (not through PHO). Any ideas?
@AroMorin Which release version are you using? I haven't seen this one pop up in awhile.
I’m using the “latest” version, just done a fresh install of Petr….An older setup is working fine. My theory is something you changed reintroduced the bug?
On Jul 31, 2015, at 3:50 PM, John Beieler [email protected] wrote:
@AroMorin https://github.com/AroMorin Which release version are you using? I haven't seen this one pop up in awhile.
— Reply to this email directly or view it on GitHub https://github.com/openeventdata/petrarch/issues/75#issuecomment-126796437.
Could you paste the full traceback for the error?
@cnnorris Any thoughts on this?
Sure! Here's a screenshot of the traceback:
Thanks!!
On Mon, Aug 3, 2015 at 9:27 AM, John Beieler [email protected] wrote:
Could you paste the full traceback for the error?
@cnnorris https://github.com/cnnorris Any thoughts on this?
— Reply to this email directly or view it on GitHub https://github.com/openeventdata/petrarch/issues/75#issuecomment-127233351 .
@AroMorin There's no screenshot attached. A copy-paste would also be fine.
What's the command you're using to run the program? Also, a sample of the text you're using would be helpful.
My guess is that you're trying to run unparsed text through the program and it's not currently setup to do that.