theprogrammablemind 7.2.3-beta.4 → 7.2.3-beta.5

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.
Files changed (2) hide show
  1. package/package.json +42 -42
  2. package/readme +12 -10
package/package.json CHANGED
@@ -1,37 +1,31 @@
1
1
  {
2
- "main": "index.js",
3
- "author": "dev@thinktelligence.com",
4
- "version": "7.2.3-beta.4",
5
- "keywords": [
6
- "NLP",
7
- "NLU",
8
- "NLC",
9
- "natural language processing",
10
- "natural language generation",
11
- "natural language understanding",
12
- "chatbot"
13
- ],
14
- "devDependencies": {
15
- "eslint-config-standard": "^16.0.3",
16
- "eslint-plugin-promise": "^5.1.0",
17
- "eslint": "^7.31.0",
18
- "eslint-plugin-import": "^2.23.4",
19
- "@typescript-eslint/parser": "^4.28.4",
20
- "@typescript-eslint/eslint-plugin": "^4.28.4",
21
- "jest": "^26.6.3",
22
- "eslint-plugin-node": "^11.1.0"
23
- },
24
2
  "name": "theprogrammablemind",
3
+ "version": "7.2.3-beta.5",
25
4
  "scripts": {
26
- "test:watch": "npm run test -- --watch",
5
+ "tod": "node inspect node_modules/.bin/jest --runInBand -t NEO",
27
6
  "to": "node node_modules/.bin/jest --runInBand -t NEO",
28
- "lint:fix": "eslint \"**/*.js\" --fix",
29
- "lint": "eslint \"**/*.js\"",
30
- "test": "jest --config ./jest.config.json",
7
+ "test:watch": "npm run test -- --watch",
31
8
  "to:debug": "node inspect node_modules/.bin/jest --runInBand -t NEO",
32
- "tod": "node inspect node_modules/.bin/jest --runInBand -t NEO",
33
- "test:debug": "node inspect node_modules/.bin/jest --runInBand --config ./jest.config.json"
9
+ "test:debug": "node inspect node_modules/.bin/jest --runInBand --config ./jest.config.json",
10
+ "test": "jest --config ./jest.config.json",
11
+ "lint:fix": "eslint \"**/*.js\" --fix",
12
+ "lint": "eslint \"**/*.js\""
13
+ },
14
+ "dependencies": {
15
+ "json-stable-stringify": "^1.0.1",
16
+ "scriptjs": "^2.5.9",
17
+ "readline": "^1.3.0",
18
+ "uuid": "^8.3.2",
19
+ "underscore": "^1.13.1",
20
+ "sort-json": "^2.0.0",
21
+ "fs": "0.0.1-security",
22
+ "lodash": "^4.17.20",
23
+ "base-64": "^1.0.0",
24
+ "json-diff": "^1.0.3",
25
+ "node-fetch": "^2.6.1",
26
+ "deep-equal": "^2.0.4"
34
27
  },
28
+ "license": "ISC",
35
29
  "files": [
36
30
  "client.js",
37
31
  "index.js",
@@ -47,19 +41,25 @@
47
41
  "src/generators.js",
48
42
  "src/semantics.js"
49
43
  ],
50
- "license": "ISC",
51
- "dependencies": {
52
- "underscore": "^1.13.1",
53
- "json-diff": "^1.0.3",
54
- "lodash": "^4.17.20",
55
- "scriptjs": "^2.5.9",
56
- "fs": "0.0.1-security",
57
- "deep-equal": "^2.0.4",
58
- "sort-json": "^2.0.0",
59
- "uuid": "^8.3.2",
60
- "node-fetch": "^2.6.1",
61
- "json-stable-stringify": "^1.0.1",
62
- "base-64": "^1.0.0",
63
- "readline": "^1.3.0"
44
+ "main": "index.js",
45
+ "keywords": [
46
+ "NLP",
47
+ "NLU",
48
+ "NLC",
49
+ "natural language processing",
50
+ "natural language generation",
51
+ "natural language understanding",
52
+ "chatbot"
53
+ ],
54
+ "author": "dev@thinktelligence.com",
55
+ "devDependencies": {
56
+ "eslint-plugin-node": "^11.1.0",
57
+ "@typescript-eslint/parser": "^4.28.4",
58
+ "@typescript-eslint/eslint-plugin": "^4.28.4",
59
+ "eslint-plugin-promise": "^5.1.0",
60
+ "jest": "^26.6.3",
61
+ "eslint-plugin-import": "^2.23.4",
62
+ "eslint-config-standard": "^16.0.3",
63
+ "eslint": "^7.31.0"
64
64
  }
65
65
  }
package/readme CHANGED
@@ -1,13 +1,12 @@
1
1
  # The Programmable Mind (aka Entodicton)
2
2
 
3
3
  This is the client for a server that processes natural language statements
4
- into JSON. Instead of using grammar based parser, the server uses a
5
- generalized operator precedence parser and neural nets.
4
+ into JSON which can be paraphrase or acted upon. Instead of using grammar based parser,
5
+ the server uses a generalized operator precedence parser.
6
6
 
7
7
  ## Demo Walkthough
8
8
 
9
- A simple demo program can be run by installing theprogrammablemind
10
- package and the running this command.
9
+ A simple demo program can be run by installing this package and the running this command.
11
10
 
12
11
  ```
13
12
  dev@devlaptop:~/temp/myProject$ node node_modules/theprogrammablemind/demo -q 'i went to the store' -d
@@ -61,12 +60,12 @@ The priorities defined in order of application are
61
60
  ```
62
61
 
63
62
 
64
- 'went' is defined as infix for the example but defined as a prefix opertator that evaluates to postfix operator
63
+ 'went' is defined as infix for the example but defined as a prefix operator that evaluates to postfix operator
65
64
  would allow sentences such as "I went to the store bought a coffee and chips and jumped on the bus".
66
65
 
67
66
  ## Bridges
68
67
 
69
- This works by combining contexts. Each context has a marker which indicates that is the operator. The
68
+ This works by combining contexts. Each context has a marker which indicates what is the operator. The
70
69
  bridge is used to specify how to combine contexts to get the next context. This abstraction
71
70
  support multiple languages mapping ultimately to the same JSON. The basic components are
72
71
 
@@ -113,10 +112,6 @@ the result is
113
112
  }
114
113
  ```
115
114
 
116
- ## Utterances
117
-
118
- This is a list of statement that will be processed using the given definitions
119
-
120
115
  ## Priorities
121
116
 
122
117
  If request fail to process correctly one of the main causes is operator ordering. The 'operators' definition is used to generate training data for the ordering neural net. Sometimes that is not enough. There is a 'priorities' property that can be used to supply additional training data. Priorties is a list of operators. The last operator it the preferred one. The logs show the order that operators were run in. If it wrong look for another message like
@@ -142,3 +137,10 @@ A generator is used to describe how to map json back to strings. This is an exam
142
137
  The first part is a condition that is used to select the context. This example would match a context where the value 'marker' equals 'tankConcept' and the property 'number' is an number greater than zero. The second part can access properties in the context and generate a string. The access the properties 'number' and 'word' to generate a string.
143
138
 
144
139
  List the default generators first. For example if you want English to be the default list the generator for English for and for other language with a language selector later.
140
+
141
+ # More
142
+
143
+ Videos with more details can be found at <a href=http://thinktelligence.com/kms>thinktelligence videos</a>
144
+
145
+ This is a list of statement that will be processed using the given definitions
146
+