Duckling

弃用,改用 https://github.com/facebook/duckling。「Deprecated in favor of https://github.com/facebook/duckling」

  • 所有者: facebookarchive/duckling_old
  • 平台: Linux, Mac, Windows
  • 許可證: Other
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Deprecation notice

As of May 1st, 2017 we're deprecating this repository in favor of the new Duckling. See our blog post announcement.

Thanks to all the contributors!

Duckling

Clojars Project

Duckling is a Clojure library that parses text into structured data:

“the first Tuesday of October” => {:value "2014-10-07T00:00:00.000-07:00"
                                   :grain :day}

You can try it out at https://duckling.wit.ai

See our blog post announcement for more context.

Getting started

To use Duckling in your project, you just need two functions: load! to load the default configuration, and parse to parse a string.

(ns myproject.core
  (:require [duckling.core :as p]))

(p/load!) ;; Load all languages

(p/parse :en$core ;; core configuration for English ; see also :fr$core, :es$core, :zh$core
         "wake me up the last Monday of January 2015 at 6am"
         [:time]) ;; We are interested in :time expressions only ; see also :duration, :temperature, etc.

;; => [{:label :time
;;        :start 15
;;        :end 49
;;        :value {:type "value", :value "2015-01-26T06:00:00.000-02:00", :grain :hour}
;;        :body "last Monday of January 2015 at 6am"}]

See the documentation for more information.

主要指標

概覽
名稱與所有者facebookarchive/duckling_old
主編程語言Clojure
編程語言Clojure (語言數: 2)
平台Linux, Mac, Windows
許可證Other
所有者活动
創建於2014-05-15 23:02:02
推送於2019-05-30 14:10:47
最后一次提交2019-05-30 07:10:46
發布數0
用户参与
星數1.3k
關注者數76
派生數216
提交數588
已啟用問題?
問題數100
打開的問題數67
拉請求數123
打開的拉請求數3
關閉的拉請求數25
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?