Liking cljdoc? Tell your friends :D

beagle.phrases


annotate-textclj

(annotate-text text monitor field-names type-name)
source

annotatorclj

(annotator dictionary
           &
           {:keys [type-name validate-dictionary? optimize-dictionary?
                   tokenizer]})

Creates an annotator function with for a given dictionary. Params:

  • dictionary: a list of dictionary entries as described in beagle.schema Options:
  • type-name: a string, defaults to "PHRASE"
  • validate-dictionary?: if set to true then validates the dictionary, default false
  • optimize-dictionary?: if set to true then optimizes dictionary before creating the monitor, default false
  • tokenizer: a keyword one of #{:standard :whitespace}, default :standard
Creates an annotator function with for a given dictionary.
Params:
- dictionary: a list of dictionary entries as described in `beagle.schema`
Options:
- type-name: a string, defaults to "PHRASE"
- validate-dictionary?: if set to true then validates the dictionary, default false
- optimize-dictionary?: if set to true then optimizes dictionary before creating the monitor, default false
- tokenizer: a keyword one of #{:standard :whitespace}, default :standard
sourceraw docstring

create-monitorclj

(create-monitor field-names-w-analyzers)
source

defer-to-one-by-one-registrationclj

(defer-to-one-by-one-registration monitor monitor-queries)
source

dict-entries->monitor-queriesclj

(dict-entries->monitor-queries dict-entries default-analysis-conf)
source

dict-entry->monitor-queryclj

(dict-entry->monitor-query {:keys [id text meta type slop] :as dict-entry}
                           default-analysis-conf
                           idx)
source

field-name-analyzer-mappingsclj

(field-name-analyzer-mappings dictionary default-analysis-conf)

Creates a map with field names as keys and Lucene analyzers as values. Both field name and analyzer are decided based on the dictionary entry configuration. First group dictionary entries by field name. Then from every group of dictionary entries take the first entry and create an analyzer based on analysis configuration.

Creates a map with field names as keys and Lucene analyzers as values.
Both field name and analyzer are decided based on the dictionary entry configuration.
First group dictionary entries by field name. Then from every group of dictionary entries
take the first entry and create an analyzer based on analysis configuration.
sourceraw docstring

field-typeclj

source

highlighterclj

(highlighter dictionary)
(highlighter dictionary opts)
source

matchclj

(match text monitor field-names type-name opts)
source

match->annotationclj

(match->annotation text monitor type-name match)
source

meta-type?clj

(meta-type? annotation)
source

monitor-query-serializerclj

source

phrase->stringsclj

(phrase->strings dict-entry default-analysis-conf)
source

post-processclj

(post-process annotation)
source

prepare-monitorclj

(prepare-monitor monitor dict-entries default-analysis-conf)
source

prepare-synonymsclj

(prepare-synonyms query-id {:keys [synonyms] :as dict-entry})
source

save-queries-in-monitorclj

(save-queries-in-monitor monitor monitor-queries)
source

setup-monitorclj

(setup-monitor dictionary default-analysis-conf)

Setups the monitor with all the dictionary entries.

Setups the monitor with all the dictionary entries.
sourceraw docstring

synonym-annotation?clj

(synonym-annotation? annotation)
source

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

× close