Skip to content

Commit 1a3dc89

Browse files
chore(*): add standard licesne header
1 parent 3cd7369 commit 1a3dc89

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

src/sentence-wise-importance.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
// wink-nlp
2+
//
3+
// Copyright (C) GRAYPE Systems Private Limited
4+
//
5+
// This file is part of “wink-nlp”.
6+
//
7+
// Permission is hereby granted, free of charge, to any
8+
// person obtaining a copy of this software and
9+
// associated documentation files (the "Software"), to
10+
// deal in the Software without restriction, including
11+
// without limitation the rights to use, copy, modify,
12+
// merge, publish, distribute, sublicense, and/or sell
13+
// copies of the Software, and to permit persons to
14+
// whom the Software is furnished to do so, subject to
15+
// the following conditions:
16+
//
17+
// The above copyright notice and this permission notice
18+
// shall be included in all copies or substantial
19+
// portions of the Software.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
22+
// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
23+
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
24+
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
25+
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
26+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
27+
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
28+
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29+
// DEALINGS IN THE SOFTWARE.
30+
31+
//
32+
133
const constants = require( './constants.js' );
234
// Bits reserved for `lemma`.
335
const bits4lemma = constants.bits4lemma;

src/sort4FT.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
// wink-nlp
2+
//
3+
// Copyright (C) GRAYPE Systems Private Limited
4+
//
5+
// This file is part of “wink-nlp”.
6+
//
7+
// Permission is hereby granted, free of charge, to any
8+
// person obtaining a copy of this software and
9+
// associated documentation files (the "Software"), to
10+
// deal in the Software without restriction, including
11+
// without limitation the rights to use, copy, modify,
12+
// merge, publish, distribute, sublicense, and/or sell
13+
// copies of the Software, and to permit persons to
14+
// whom the Software is furnished to do so, subject to
15+
// the following conditions:
16+
//
17+
// The above copyright notice and this permission notice
18+
// shall be included in all copies or substantial
19+
// portions of the Software.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
22+
// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
23+
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
24+
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
25+
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
26+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
27+
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
28+
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29+
// DEALINGS IN THE SOFTWARE.
30+
31+
//
32+
133
/**
234
* Stable sort function for frequency table i.e. `[ [ term, frequency ] ... ]`.
335
* It first sorts on the frequency and then an alpha-numeric sort on term.

0 commit comments

Comments
 (0)