-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
bugSomething isn't workingSomething isn't working
Description
object HawkingParserHelper {
fun parseDateFromText(text: String): DatesFound? {
val parser = HawkingTimeParser()
val config = HawkingConfiguration().apply {
this.fiscalYearEnd = 3
this.fiscalYearStart = 4
this.maxParseDate = 1500
this.timeZone = "IST"
this.dateFormat = "DD/MM/YYYY"
this.weekDayStart = Calendar.MONDAY
this.weekDayEnd = Calendar.SUNDAY
this.weekEndStart = Calendar.SATURDAY
this.weekEndEnd = Calendar.SUNDAY
}
return parser.parse(text, Date() ,config,"eng")
}
}
samples
"next quarter estimate"
Label : D
Text : next quarter estimate
IsTimeZonePresent : false
Time zone : +05:30
IsExactTimePresent
ld : O
End Index : 21
Start Index : 0
match Type .
Start : null
End :null
sequence :SINGLE
Expression : (0)
"Revenue generated this quarter"
Label : D
Text : this quarter
IsTimeZonePresent : false
Time Zone : +05:30
IsExactTimePresent : false
Id : 0
End Index : 30
Start Index : 18
Match Type :
Start : null
End : null
Sequence :SINGLE
Expression :(0)
"In the last fiscal year, our company reached more than 20 million users"
Label: D
Text: last fiscal year
IsTimeZonePresent: false
Time Zone: +05:30
IsExactTimePresent: false
Id:0
End Index: 23
Start Index: 7
Match Type:
**Start: 2024-01-01T00:00:00.000+05:30**//differ from mentioned in config
**End: 2024-12-31T23:59:59.000+05:30**
Sequence :SINGLE
Expression :(0)
"next plan on q4"
Label: D
Text : on q4
IsTimeZonePresent :false
Time Zone: +05:30
IsExactTimePresent :false
Id: 0
End Index : 15
Start Index: 10
Match Type:
Start: null
End : null
Sequence : SINGLE
Expression: (0)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working