petrarch icon indicating copy to clipboard operation
petrarch copied to clipboard

Processing bug

Open johnb30 opened this issue 10 years ago • 9 comments

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

johnb30 avatar Jan 28 '15 15:01 johnb30

Assuming it passes tests with the Phoenix inputs, the changes to the multi-word verb processing I just posted should correct this

philip-schrodt avatar May 01 '15 14:05 philip-schrodt

Hello, I am facing the same issue, though I am using Petr on its own (not through PHO). Any ideas?

AroMorin avatar Jul 31 '15 19:07 AroMorin

@AroMorin Which release version are you using? I haven't seen this one pop up in awhile.

johnb30 avatar Jul 31 '15 19:07 johnb30

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.

AroMorin avatar Jul 31 '15 20:07 AroMorin

Could you paste the full traceback for the error?

@cnnorris Any thoughts on this?

johnb30 avatar Aug 03 '15 13:08 johnb30

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 avatar Aug 07 '15 19:08 AroMorin

@AroMorin There's no screenshot attached. A copy-paste would also be fine.

johnb30 avatar Aug 10 '15 15:08 johnb30

petr_error

AroMorin avatar Aug 10 '15 16:08 AroMorin

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.

johnb30 avatar Aug 10 '15 16:08 johnb30