UNPKG
ts-textrank
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Typescript TextRank implementation
NachoBrito/ts-textrank
ts-textrank
/
TextRank
/
domain
/
Sentence.d.ts
10 lines
(9 loc)
•
257 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
Word
from
"./Word"
;
export
default
class
Sentence
{
readonly
raw
:
string
;
readonly
words
:
Word
[];
readonly
position
:
number
;
score
:
number
;
constructor
(
raw
:
string
,
words
:
Word
[],
position
:
number
);
getNormalized
():
string
; }