-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
I tried most of those examples and none of them worked.
class ApexAPI {
static {
Apex.init(new Apex.ApexBuilder()
.addParser("en", new EnglishParser())
.build());
}
Event getEvent(String sentence) {
return Apex.nlp("en", sentence);
}
}
But when I ask for a simply parse I get only time parsed correctly
for example
ApexAPI apexAPI = new ApexAPI();
Event event = apexAPI.getEvent("Piano lessons Tuesdays and Thursdays at 5-6pm from 1/21 to 2/23");
I get:
Event{title='', startDateTime=2017-05-25T17:00:35.780, endDateTime=2017-05-25T18:00:35.780, isAllDay=false, recurrence=null}
Am I holding it wrong or what?
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels