suzytamang / clever-rockies

clinical event recognizer for TIU
3 stars 1 forks source link

local variables headers not set; likely a reference to the member variable self.headers #88

Open dax-westerman opened 2 months ago

dax-westerman commented 2 months ago

Within sequencer.py

https://github.com/suzytamang/clever-rockies/blob/68972db0da9375920f2cb8efb02a216c8a2dbc87/src/step2/sequencer.py#L381-L383

Step to reproduce

Invoke the following

python "X:\_\Project - PERC\clever-rockies/src/step2/sequencer.py" --lexicon "x:/_/Project - PERC/clever-rockies/res/dicts/dict.txt" --section-headers "x:/_/Project - PERC/clever-rockies/res/headers.txt" --main-targets LONELINESS --snippet-length 250 --snippets --notes "x:/_/Project - PERC/clever-rockies/tests/resources/test_notes/test_notes_with_metadata_one_line_tab_delim.txt" --workers 1 --output "x:/_/Project - PERC/clever-rockies/tests/output/LONELINESS" --left-gram-context 3 --right-gram-context 2 "

This results in the error.

name 'headers' is not defined