@mineproness/tensorloop 1.4.0 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mineproness/tensorloop",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "The most powerfull Machine Learning Library for AI.",
5
5
  "keywords": [
6
6
  "ai",
package/readme.md CHANGED
@@ -12,6 +12,7 @@ A Library that Supply AI Tools and Large Language model Development tools like E
12
12
  - Tokenizer for convert into tokens.
13
13
  - Self attention
14
14
  - Position Embedding
15
+ - PAD token is '<PAD>' and EOS token <EOS>
15
16
 
16
17
  ## Configs
17
18
 
@@ -8,6 +8,7 @@ export class Tokenizer {
8
8
  vocabSize = 0;
9
9
  IdtoWord = {};
10
10
  WordtoID = {};
11
+ EOSToken = 2
11
12
  constructor() {
12
13
  this.vocabs = JSON.parse(readFileSync(join(__dirname, "vocabs.json"), "utf-8"))
13
14
  this.vocabSize = this.vocabs.length