You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In line 406 of flex2csv.py, you split an ID into sentence number (before period) and phrase number (after period). This fails if the sentence number had not been retrieved.
Be tolerant with records without sentence numbers. Users might still want to convert them.
As a quick fix, I used
if "." in rec.get("Sentence_Number", "noperiod"):
rec["Sentence_Number"], rec["Phrase_Number"] = rec["Sentence_Number"].split(".")
return rec
but try/catch or checking for "Sentence_Number" in rec should also work
The text was updated successfully, but these errors were encountered:
In line 406 of
flex2csv.py
, you split an ID into sentence number (before period) and phrase number (after period). This fails if the sentence number had not been retrieved.Be tolerant with records without sentence numbers. Users might still want to convert them.
As a quick fix, I used
but try/catch or checking for "Sentence_Number" in rec should also work
The text was updated successfully, but these errors were encountered: