Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Processing bug #75

Open
johnb30 opened this issue Jan 28, 2015 · 9 comments
Open

Processing bug #75

johnb30 opened this issue Jan 28, 2015 · 9 comments
Assignees
Labels

Comments

@johnb30
Copy link
Member

johnb30 commented Jan 28, 2015

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

@philip-schrodt
Copy link

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

@AroMorin
Copy link

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

@johnb30
Copy link
Member Author

johnb30 commented Jul 31, 2015

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

@AroMorin
Copy link

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 #75 (comment).

@johnb30
Copy link
Member Author

johnb30 commented Aug 3, 2015

Could you paste the full traceback for the error?

@cnnorris Any thoughts on this?

@AroMorin
Copy link

AroMorin commented Aug 7, 2015

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
#75 (comment)
.

@johnb30
Copy link
Member Author

johnb30 commented Aug 10, 2015

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

@AroMorin
Copy link

petr_error

@johnb30
Copy link
Member Author

johnb30 commented Aug 10, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants