UNPKG

ts-textrank

Version:

Typescript TextRank implementation

16 lines (15 loc) 417 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Sentence { constructor(raw, words, position) { this.score = 0; this.words = words; this.raw = raw; this.position = position; } getNormalized() { const normalizedWords = this.words.map(w => w.normalized); return normalizedWords.join(" "); } } exports.default = Sentence;