121 points · by getdreambits · 7y ago · 24 comments
(Very small correction: Duckling is rule-based but uses a super simple Naive Bayes classifier to prioritize between the many potential parses produced by the rules -- we see it as a hybrid approach)
Are the trained sets mean to be used by different client code or languages?
Duckling is relevant to parse very structured language, typically temporal expressions (dates and times...). It relies on a mix of rules and machine learning. Rules and datasets for many (human) languages are available in the repo. You don't need a lot of data to add support for what you need, owing to this hybrid rules+ML approach (as opposed to just ML).
I'd love to see somebody taking over and resuscitate it! One interesting direction could be to remove Java dependencies (mostly to Date) so that it's usable in ClojureScript. It would make a great JS library.
TL;DR Haskell made more sense for us to scale with the number of requests (existing FB infra) as well as the number of engineers working on the project (type checking, etc).
I don't mean this in a type system flamewar but in java if you receive Person object and want to get firstName. Your options are still the same.
1. runtime check to see person.firstName is not null.
2. or blindly assume that it can never be null and do person.firstName.trim()
So those are the exact options in clojure too. What am I missing here.