yake 0.1.1
yake: ^0.1.1 copied to clipboard
Pure-Dart port of YAKE! (Yet Another Keyword Extractor) — unsupervised, single-document, language-independent keyword and keyphrase extraction with no models, corpora or network access.
import 'package:yake/yake.dart';
void main() {
final yake = Yake(stopwords: englishStopwords);
const text =
'The payment gateway migration is blocked on the Stripe webhook '
'signature. Marco said the payment gateway migration slips to next '
'sprint unless the webhook fix lands. QA needs a staging build with '
'the webhook fix by Thursday.';
for (final k in yake.extract(text, top: 5)) {
print('${k.score.toStringAsFixed(4)} ${k.keyword} (x${k.count})');
}
}