Liking cljdoc? Tell your friends :D

duckling.core


analyzeclj

(analyze s context module targets base-stash)

Parse a sentence, returns the stash and a curated list of winners. Targets is a coll of {:dim dim :label label} : only winners of these dims are kept, and they receive a :label key = the label provided. If no targets specified, all winners are returned.

Parse a sentence, returns the stash and a curated list of winners.
Targets is a coll of {:dim dim :label label} : only winners of these dims are
kept, and they receive a :label key = the label provided.
If no targets specified, all winners are returned.
sourceraw docstring

cclj

(c n)
source

clear!clj

(clear!)
source

default-contextclj

(default-context opt)

Build a default context for testing. opt can be either :corpus or :now

Build a default context for testing. opt can be either :corpus or :now
sourceraw docstring

detailsclj

source

extractclj

(extract sentence context leven-stash targets)

API used by Wit.ai (will be moved to Wit) targets is a coll of maps {:module :dim :label} for instance: {:module fr$core, :dim duration, :label wit$duration} to get duration results Returns a single coll of tokens with :body :value :start :end :label (=wisp) :latent

API used by Wit.ai (will be moved to Wit)
targets is a coll of maps {:module :dim :label} for instance:
{:module fr$core, :dim duration, :label wit$duration} to get duration results
Returns a single coll of tokens with :body :value :start :end :label (=wisp) :latent
sourceraw docstring

get-dimsclj

(get-dims module {:keys [context tests]})

Retrieves all available dimensions for module by running its corpus.

Retrieves all available dimensions for module by running its corpus.
sourceraw docstring

language->dataclj

source

load!clj

(load!)
(load! args)

Loads rules and classifiers for languages or/and config. If no language list nor config provided, loads all languages. Returns a map of loaded modules with available dimensions.

Loads rules and classifiers for languages or/and config.
If no language list nor config provided, loads all languages.
Returns a map of loaded modules with available dimensions.
sourceraw docstring

parseclj

(parse module text)
(parse module text dims)
(parse module text dims context)

Public API. Parses text using given module. If dims are provided as a list of keywords referencing token dimensions, only these dimensions are extracted. Context is a map with a :reference-time key. If not provided, the system current date and time is used.

Public API. Parses text using given module. If dims are provided as a list of
keywords referencing token dimensions, only these dimensions are extracted.
Context is a map with a :reference-time key. If not provided, the system
current date and time is used.
sourceraw docstring

playclj

(play module-id s)
(play module-id s targets)
(play module-id s targets context)

Show processing details for one sentence. Defines a 'details' function.

Show processing details for one sentence. Defines a 'details' function.
sourceraw docstring

RCCclj

source

runclj

(run)
(run module-id)

Runs the corpus and prints the results to the terminal.

Runs the corpus and prints the results to the terminal.
sourceraw docstring

run-corpusclj

(run-corpus {context :context tests :tests} module)

Run the corpus given in parameter for the given module. Returns a list of vectors [0|1 text error-msg]

Run the corpus given in parameter for the given module.
Returns a list of vectors [0|1 text error-msg]
sourceraw docstring

tokenclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close