Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

"afternoon thursday" parsed differently than "thursday afternoon" #167

Open
savv opened this issue Nov 1, 2016 · 0 comments
Open

"afternoon thursday" parsed differently than "thursday afternoon" #167

savv opened this issue Nov 1, 2016 · 0 comments

Comments

@savv
Copy link

savv commented Nov 1, 2016

myproject.core=> (p/parse :en$core "thursday afternoon" [:time])
({:dim :time, :body "thursday afternoon", :value {:type "interval", :from {:value "2016-11-03T12:00:00.000Z", :grain :hour}, :to {:value "2016-11-03T19:00:00.000Z", :grain :hour}, :values ({:type "interval", :from {:value "2016-11-03T12:00:00.000Z", :grain :hour}, :to {:value "2016-11-03T19:00:00.000Z", :grain :hour}} {:type "interval", :from {:value "2016-11-10T12:00:00.000Z", :grain :hour}, :to {:value "2016-11-10T19:00:00.000Z", :grain :hour}} {:type "interval", :from {:value "2016-11-17T12:00:00.000Z", :grain :hour}, :to {:value "2016-11-17T19:00:00.000Z", :grain :hour}})}, :start 0, :end 18})

myproject.core=> (p/parse :en$core "afternoon on thursday" [:time])
({:dim :time, :body "afternoon", :value {:type "interval", :from {:value "2016-11-01T12:00:00.000Z", :grain :hour}, :to {:value "2016-11-01T19:00:00.000Z", :grain :hour}, :values ({:type "interval", :from {:value "2016-11-01T12:00:00.000Z", :grain :hour}, :to {:value "2016-11-01T19:00:00.000Z", :grain :hour}} {:type "interval", :from {:value "2016-11-02T12:00:00.000Z", :grain :hour}, :to {:value "2016-11-02T19:00:00.000Z", :grain :hour}} {:type "interval", :from {:value "2016-11-03T12:00:00.000Z", :grain :hour}, :to {:value "2016-11-03T19:00:00.000Z", :grain :hour}})}, :start 0, :end 9, :latent true} {:dim :time, :body "on thursday", :value {:type "value", :value "2016-11-03T00:00:00.000Z", :grain :day, :values ({:type "value", :value "2016-11-03T00:00:00.000Z", :grain :day} {:type "value", :value "2016-11-10T00:00:00.000Z", :grain :day} {:type "value", :value "2016-11-17T00:00:00.000Z", :grain :day})}, :start 10, :end 21})

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

No branches or pull requests

1 participant