-
Notifications
You must be signed in to change notification settings - Fork 48
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
Date extractor issue for a particular case #391
Labels
Comments
The workaround I used to fix this, event_date = doc.cdr_document.get('Date') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the date extraction of dates in the form '11/2018' and '12/2018' where the year can change the following code of date extraction returns no extractions:
event_date = doc.select_segments(jsonpath='$.Date')
extractions = doc.extract(extractor=self.date_extractor, extractable=event_date[0])
In the above snippet 'Date' is the field of the document. The above code works for all the other months from '1/2018' to '10/2018' but typically fails for November and December.
The text was updated successfully, but these errors were encountered: