AmyOlex / Chrono

Parsing time normalizations from text.
GNU General Public License v3.0
15 stars 4 forks source link

[Bug] Build Chrono Year reference month entity before assignment #30

Open maffeyl opened 6 years ago

maffeyl commented 6 years ago

THYME train file doc0082_CLIN causes the error UnboundLocalError: local variable 'chrono_month_entity' referenced before assignment on line 665 of buildChronoYear. Looks like we have an if statement to create the entity, so probably need to clean up the logic a bit.

AmyOlex commented 6 years ago

I'm not getting this error with the clinical files that start with "ID", and I don't see an obvious logical issue, so I'm going to leave this one for now.