Skip to content

Commit 83c72b8

Browse files
feat(its): add sentenceWiseImprotance function
1 parent f7ca0ac commit 83c72b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/its.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
var sort4FT = require( './sort4FT.js' );
3434
var constants = require( './constants.js' );
3535
var caseMap = [ 'other', 'lowerCase', 'upperCase', 'titleCase' ];
36+
var swi = require( './sentence-wise-importance.js' );
3637

3738
// Size of a single token.
3839
var tkSize = constants.tkSize;
@@ -162,6 +163,10 @@ its.readabilityStats = function ( rdd, addons ) {
162163
return addons.readabilityStats( rdd, its );
163164
}; // readabilityStats()
164165

166+
its.sentenceWiseImprotance = function ( rdd ) {
167+
return swi( rdd );
168+
}; // sentenceWiseImprotance()
169+
165170
/* ------ utilities ------ */
166171

167172
its.terms = function ( tf, idf, terms ) {

0 commit comments

Comments
 (0)