nxt.ngram

First and Higher Order Statistics: $(LUCKY Histograms) and $(LUCKY N-grams).

Members

Aliases

Hist
alias Hist = NGram
Undocumented in source.
bunigram
alias bunigram = bistogram
Undocumented in source.
hist
alias hist = histogram
Undocumented in source.
unigram
alias unigram = histogram
Undocumented in source.

Enums

Kind
enum Kind

N-Gram Model Kind.

Storage
enum Storage

N-Gram Model Storage.

Symmetry
enum Symmetry

N-Gram Model Symmetry.

Functions

bigram
auto bigram(Range range)

Computes $(LUCKY Bi-Gram) of range.

bistogram
auto bistogram(Range range)

Computes $(LUCKY Binary Histogram) of range.

bistogramOverRepresentation
auto bistogramOverRepresentation(string x)

Computes $(LUCKY Binary (Occurrence) NGram) of Bytes in Input String x.

histogram
auto histogram(Range range)
Undocumented in source. Be warned that the author may not have intended to support it.
ngram
auto ngram(Range range)

Computes $(LUCKY Bi-Gram) of range.

pengram
auto pengram(Range range)

Computes $(LUCKY Pen-Gram) of range.

quagram
auto quagram(Range range)

Computes $(LUCKY Qua-Gram) of range.

sparseUIntBigram
auto sparseUIntBigram(Range range)
Undocumented in source. Be warned that the author may not have intended to support it.
sparseUIntNGramOverRepresentation
auto sparseUIntNGramOverRepresentation(string range)
Undocumented in source. Be warned that the author may not have intended to support it.
sparseUIntQuagram
auto sparseUIntQuagram(Range range)
Undocumented in source. Be warned that the author may not have intended to support it.
sparseUIntQuagramOverRepresentation
auto sparseUIntQuagramOverRepresentation(string x)
Undocumented in source. Be warned that the author may not have intended to support it.
sparseUIntTrigram
auto sparseUIntTrigram(Range range)
Undocumented in source. Be warned that the author may not have intended to support it.
trigram
auto trigram(Range range)

Computes $(LUCKY Tri-Gram) of range.

Structs

NGram
struct NGram(ValueType, int N = 1, Kind kind = Kind.saturated, Storage storage = Storage.denseDynamic, Symmetry symmetry = Symmetry.ordered, RequestedBinType = void, Range)

Computes $(LUCKY N-Gram) Model of Input Range range.

Meta

Authors

TODO: Replace static ifs with static final switch when Issue 6921 is fixed

TODO: Remove overloads using std.string:representation and use sparse maps over dchar for strings.