Comments (7)
we are working on the issues. will update once fixed
from hawking.
we have analyzed the cases,
Hawking Time parser works well for input sentences more in structural English as it is trained that way, we will be handling cases that used in chats and speakable format(the direct way of input that lacks grammar yet meaningful).
=> Using prepositions at the required place will give expected results.
Input 1: There was a conference on day before yesterday
=> Usage of multiple prepositions have related words in English like the following
"from today to next Monday"
"from today until next Monday"
from and till are least likely used in English together. We will handle these cases in the upcoming releases. To get the expected result use (from, to) or (from, until) words together.
Input 2: "there will be a conference from today until next Monday"
=> We have solved the multiple spacing Issue. It will be available in master soon and next maven Release
=> And let us know the timezone of the server/machine you are running the code. As you set "IST" as the required output format the start_date and end_date will be altered based on server/machine time zone.
Sample Input :
"Good morning, Have a nice day. there will be conference on 12/12/2021"
hawkingConfiguration.setTimeZone("PST") ===> Input Timezone Configuration
Output Log:
INFO: Label : D
Text : on 12/12/2021
IsTimeZonePresent : false
Time Zone : -07:00 =====> This represents configured timeZone (PST is now on Daylight saving so -7:00)
IsExactTimePresent : false
Id : 0
End Index : 69
Start Index : 56
Match Type :
Start : 2021-12-12T12:30:00.000 +05:30 =====> This represents Server/machine timezone
End : 2021-12-13T12:29:59.000 +05:30 =====> This represents Server/machine timezone
Sequence :SINGLE
Expression :(0)
from hawking.
Thanx for the explanation @ArulVendhan .
I have one more test case, if you don't mind :)
Input => "Hi, I couldn't attend seminar on 10th February 2021 (Wednesday) due to some reason."
"reference_date" : "13-04-2021 08:40:00 pm"
Output => "startDateFormat": "2022-02-10T05:30:00", "endDateFormat": "2022-02-11T05:29:59".
Here it is failing to handle the tense.
Could you please check this too ?
Thank You.
from hawking.
Yes @ShoubhikBanerjee
Could you please pull the latest changes from the master and check it once again. We have updated Tense cases recently.
Seems working fine for the input case you have given
Output Log:
INFO: Label : D
Text : 10th February 2021
IsTimeZonePresent : false
Time Zone : +05:30
IsExactTimePresent : false
Id : 0
End Index : 51
Start Index : 33
Match Type :
Start : 2021-02-10T00:00:00.000+05:30
End : 2021-02-10T23:59:59.000+05:30
Sequence :SINGLE
Expression :(0)
from hawking.
You can use the latest maven import as well to check if this case is working
check ReadMe.md for that.
from hawking.
Hi @ArulVendhan , I have checked it with latest maven repo, and the issue for "tense" is fixed, thanx for it.
But it also detects the "(Wednesday)" i.e. in bracket and detects the last Wednesday (i.e "startDateFormat": "2021-04-14T05:30:00", ).
Any suggestions for it ?
from hawking.
Sure @ShoubhikBanerjee will check and update
from hawking.
Related Issues (12)
- from until parsing HOT 5
- Is there a python wrapper for this ? HOT 1
- A couple of edge cases don't appear to be coming through correctly HOT 4
- Cannot parse: "10/28/2021" or "10-28-2021" HOT 2
- Is there a non-GPL3 option HOT 1
- Relative input truncates the less specific details of start to 0 HOT 1
- Increase In Heap Memory due to "wordToSubstrings" HOT 1
- CVE-2020-15250 vulnerability HOT 1
- One day difference HOT 1
- Timing issue with parsing strings HOT 7
- A couple of things don't seem quite right HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hawking.