DFRSimilarity
Creates DFRSimilarity from the three components and using default discountOverlaps value.
Note that `null` values are not allowed: if you want no normalization, instead pass [Normalization.NoNormalization].
Parameters
basicModel
Basic model of information content
afterEffect
First normalization of information gain
normalization
Second (length) normalization
constructor(basicModel: BasicModel, afterEffect: AfterEffect, normalization: Normalization, discountOverlaps: Boolean)
Creates DFRSimilarity from the three components and with the specified discountOverlaps value.
Note that `null` values are not allowed: if you want no normalization, instead pass [Normalization.NoNormalization].
Parameters
basicModel
Basic model of information content
afterEffect
First normalization of information gain
normalization
Second (length) normalization
discountOverlaps
True if overlap tokens (tokens with a position of increment of zero) are discounted from the document's length.