(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.
(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)
(load-default-profiles)
Load the default profiles from the langdetect jar.
Load the default profiles from the langdetect jar.
(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.
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 |