Skip to content

Not working #26

@dkovacevic

Description

@dkovacevic

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions