AmyOlex / Chrono

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

UnboundLocalError: local variable 'chrono_day_entity' referenced before assignment #89

Open zazabar opened 6 years ago

zazabar commented 6 years ago

When attempting to analyze documents with NUM-NUM-NUM / (NUM-)*NUM tokens, where NUM is an actual number that has values outside of what would be considered a valid date range, the program generates the error:

UnboundLocalError: local variable 'chrono_day_entity' referenced before assignment

Example strings used to generate the error:

386-85-38-0 X32 683-54-33 KOTEROSTREUKOTE , ARO MA O. 965-81-64-6 U94 904-74-17-7 Z57 537-43-35 130-93-91 642-07-90 FALC , COLL 891-57-52-0 T37