Skip to content

Not working #26

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

Open
dkovacevic opened this issue May 25, 2017 · 3 comments
Open

Not working #26

dkovacevic opened this issue May 25, 2017 · 3 comments

Comments

@dkovacevic
Copy link

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!

@sourabh101
Copy link

Did it work? If yes, let me know what you did to make it work?

@dkovacevic
Copy link
Author

No, I gave up :(

@dialtoneapps
Copy link

Title extraction does NOT work at all. The documentation is misleading. Sample inputs DO NOT produce outputs as advertised in the documentation. I understand its a relatively new project and i appreciate the work put in by the authors but documentation should not mislead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants