Skip to content

Commit 2177e68

Browse files
feat: add typescript declaration for its.sentenceWiseImprotance
1 parent 54f2df1 commit 2177e68

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

types/index.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ declare module 'wink-nlp' {
9191
type: string;
9292
}
9393

94+
export interface SentenceImportance {
95+
index: number;
96+
importance: number;
97+
}
98+
9499
export type ModelTermFrequencies = Bow;
95100
export type ModelInverseDocumentFrequencies = Bow;
96101

@@ -121,6 +126,7 @@ declare module 'wink-nlp' {
121126
detail(): Detail;
122127
markedUpText(index: number, token: Token, cache: Cache): string;
123128
span(spanItem: number[]): number[];
129+
sentenceWiseImportance(rdd: RawDocumentData): SentenceImportance[];
124130
sentiment(spanItem: number[]): number;
125131
readabilityStats(rdd: RawDocumentData, addons: ModelAddons): ReadabilityStats;
126132
terms(tf: ModelTermFrequencies, idf: ModelInverseDocumentFrequencies, terms: string[]): string[];

0 commit comments

Comments
 (0)