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
Parsing the duration from the text that has the difference between the two dates.
Examples (if relevant)
>>>frommaha.parsers.functionsimportparse_dimension>>>output=parse_dimension('عن ربع نمو سكان العالم القديم والتحضر بين 1700 و 1900 ميلادي', duration=True)[0].value>>>outputDurationValue(values=[ValueUnit(value=200, unit=<DurationUnit.YEARS: 7>)], normalized_unit=<DurationUnit.SECONDS: 1>)
Definition of Done
It must adhere to the coding style used in the defined dimensions, duration dimension.
The implementation should cover most use cases.
Adding tests
The text was updated successfully, but these errors were encountered:
What problem are you trying to solve?
Parsing the duration from the text that has the difference between the two dates.
Examples (if relevant)
Definition of Done
The text was updated successfully, but these errors were encountered: