An implementation of the SMMRY algorithm, using winkNLP.
The module exports a single default function, which curries around a winkNLP language model, shown
here as a wink-eng-lite-model
, which is not recommended for web. See WinkNLP for
more information.
const model = require("wink-eng-lite-model");
import withModel from "sumerian";
const summarize = withModel(model);
const document = "This is a test document.";
// Get a 3 sentence summary
const summary = summarize(document).slice(0, 3);
console.log(summary.join(" "));