Liking cljdoc? Tell your friends :D

cld.core


*detector-factory*clj

source

_clj

source

default-init!clj

(default-init!)

Initialize the DetectorFactory with the default profiles. Will not throw an exception on subsequent invocations.

Initialize the DetectorFactory with the default profiles. Will not throw an
exception on subsequent invocations.
sourceraw docstring

detectclj

(detect text-or-reader & [opts])

Returns a tuple with the language as the first element and a map of languages to their probabilities. Accepts an optional hash-map of options:

:smoothing <double> - Smoothing, defaults to 0.5 :max-length <int> - Maximum length of data to read, defaults to all :prior-map <hash-map> - A map on languages to probabilites to use :verbose <boolean> - Use verbose mode, defaults to off (false)

Returns a tuple with the language as the first element and a map of
languages to their probabilities. Accepts an optional hash-map of options:

:smoothing <double>   - Smoothing, defaults to 0.5
:max-length <int>     - Maximum length of data to read, defaults to all
:prior-map <hash-map> - A map on languages to probabilites to use
:verbose <boolean>    - Use verbose mode, defaults to off (false)
sourceraw docstring

load-default-profilesclj

(load-default-profiles)

Load the default profiles from the langdetect jar.

Load the default profiles from the langdetect jar.
sourceraw docstring

load-profilesclj

(load-profiles file-or-string)

Load detection profiles from either a File object or a String path.

Load detection profiles from either a File object or a String path.
sourceraw docstring

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

× close