(alpha-numeric-string? s)
Matches a string that is a combination of digits and letters. Useful for matching many part numbers and strings like 3am etc.
Matches a string that is a combination of digits and letters. Useful for matching many part numbers and strings like 3am etc.
(concat-ngrams n pred)
(concat-ngrams n pred coll)
Repeatedley takes a sequence of length n from terms and passes it to pred. If pred returns a truthy value, the sequence is concatenated. Useful for normalising n-grams e.g. 'user name' -> 'username'. Returns a transducer if no collection of tokens is supplied.
Repeatedley takes a sequence of length n from terms and passes it to pred. If pred returns a truthy value, the sequence is concatenated. Useful for normalising n-grams e.g. 'user name' -> 'username'. Returns a transducer if no collection of tokens is supplied.
(concat-singles)
(concat-singles coll)
Concatenates consecutive single characters. Useful for normalising names etc. For example, after tokenization, [A D B Widgets] | [ADB Widgets] -> [ADB Widgets]. Returns a transducer if no collection of tokens is provided.
Concatenates consecutive single characters. Useful for normalising names etc. For example, after tokenization, [A D B Widgets] | [ADB Widgets] -> [ADB Widgets]. Returns a transducer if no collection of tokens is provided.
(dimension-string? s)
Matches a string that looks like a dimension e.g. 3cm. The list of unit suffixes can defintely be improved upon.
Matches a string that looks like a dimension e.g. 3cm. The list of unit suffixes can defintely be improved upon.
(slurp-from-classpath path)
Slurps a file from the classpath. Lifted from https://github.com/krisajenkins/yesql
Slurps a file from the classpath. Lifted from https://github.com/krisajenkins/yesql
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close