-
Notifications
You must be signed in to change notification settings - Fork 269
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
[GSOC'24 Amharic chapter] Implement Date time parser for Ethiopian Calendar #763
base: master
Are you sure you want to change the base?
[GSOC'24 Amharic chapter] Implement Date time parser for Ethiopian Calendar #763
Conversation
Meti-Adane
commented
Aug 21, 2024
- Implements Ethiopian date to Gregorian calendar conversion for Amharic extractions.
- Implements Geez number to Arabic numeral conversion for dates written in geez number.
- Address concern mentioned in Issue 761
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost entirely human-facing.
Suggested capitalization on line 9 would be better for humans, but may not be appropriate for machinery.
core/src/main/scala/org/dbpedia/extraction/util/GeezNumberUtils.scala
Outdated
Show resolved
Hide resolved
core/src/main/scala/org/dbpedia/extraction/util/GeezNumberUtils.scala
Outdated
Show resolved
Hide resolved
core/src/test/scala/org/dbpedia/extraction/dataparser/DateTimeParserTest.scala
Outdated
Show resolved
Hide resolved
core/src/test/scala/org/dbpedia/extraction/dataparser/DateTimeParserTest.scala
Outdated
Show resolved
Hide resolved
core/src/test/scala/org/dbpedia/extraction/dataparser/DateTimeParserTest.scala
Outdated
Show resolved
Hide resolved
@@ -6,6 +6,8 @@ object DateTimeParserConfig | |||
val monthsMap = Map( | |||
// For "ar" configuration, right-to-left rendering may seem like a bug, but it's not. | |||
// Don't change this unless you know how it is done. | |||
"am" -> Map("january"->1,"february"->2,"march"->3,"april"->4,"may"->5,"june"->6,"july"->7,"august"->8,"september"->9,"october"->10,"november"->11,"december"->12, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"am" -> Map("january"->1,"february"->2,"march"->3,"april"->4,"may"->5,"june"->6,"july"->7,"august"->8,"september"->9,"october"->10,"november"->11,"december"->12, | |
"am" -> Map("January"->1,"February"->2,"March"->3,"April"->4,"May"->5,"June"->6,"July"->7,"August"->8,"September"->9,"October"->10,"November"->11,"December"->12, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if doing uppercase is correct since all other language mappings are lowercase,
IIRC we lowercase our input before processing and this could change could skip the matching
core/src/main/scala/org/dbpedia/extraction/dataparser/EthiopianDateParser.scala
Outdated
Show resolved
Hide resolved
core/src/main/scala/org/dbpedia/extraction/dataparser/EthiopianDateParser.scala
Outdated
Show resolved
Hide resolved
core/src/test/scala/org/dbpedia/extraction/dataparser/DateTimeParserTest.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the mappings look good and there is an extensive test suite for the matching/conversion of Ethiopian dates 👍 . We should also accommodate @TallTed 's comments, except the two cases that I commented on
@@ -6,6 +6,8 @@ object DateTimeParserConfig | |||
val monthsMap = Map( | |||
// For "ar" configuration, right-to-left rendering may seem like a bug, but it's not. | |||
// Don't change this unless you know how it is done. | |||
"am" -> Map("january"->1,"february"->2,"march"->3,"april"->4,"may"->5,"june"->6,"july"->7,"august"->8,"september"->9,"october"->10,"november"->11,"december"->12, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if doing uppercase is correct since all other language mappings are lowercase,
IIRC we lowercase our input before processing and this could change could skip the matching
core/src/test/scala/org/dbpedia/extraction/dataparser/DateTimeParserTest.scala
Outdated
Show resolved
Hide resolved
…s.scala Co-authored-by: Ted Thibodeau Jr <[email protected]>
…s.scala Co-authored-by: Ted Thibodeau Jr <[email protected]>
…ParserTest.scala Co-authored-by: Ted Thibodeau Jr <[email protected]>
…ParserTest.scala Co-authored-by: Ted Thibodeau Jr <[email protected]>
…ParserTest.scala Co-authored-by: Ted Thibodeau Jr <[email protected]>
…nDateParser.scala Co-authored-by: Ted Thibodeau Jr <[email protected]>
…nDateParser.scala Co-authored-by: Ted Thibodeau Jr <[email protected]>
…ParserTest.scala Co-authored-by: Ted Thibodeau Jr <[email protected]>
Quality Gate failedFailed conditions |