(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.(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
(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(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.
(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.
(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.
(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.
(run)(run module-id)Runs the corpus and prints the results to the terminal.
Runs the corpus and prints the results to the terminal.
(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]
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |