KeyphraseOptions constructor

const KeyphraseOptions({
  1. int topK = 5,
  2. bool includeBigrams = false,
})

Creates extraction options.

topK caps the result size; includeBigrams also scores adjacent word pairs (after stopword filtering) so multi-word phrases can rank. Audited: 2026-06-12 11:26 EDT

Implementation

const KeyphraseOptions({this.topK = 5, this.includeBigrams = false});